Results 1 to 3 of 3

Thread: FSO/IO and ASP.net

  1. #1

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018

    FSO/IO and ASP.net

    Using asp I used to use the FSO object a lot for creating directories, files e.t.c.

    I have now moved over to ASP.net using VB.net and was wondering if anyone knew of any good resources/tutorials for doing this in .net.

    Any URL's or tips welcome.

    Thanks in Advance

    Parksie

  2. #2
    Hyperactive Member
    Join Date
    May 2003
    Location
    india
    Posts
    273

    Be Cool

    working with files and folder is more easy for that simply search on google and get no of examples:
    well I am giving som esort of help:

    using System.IO;

    if(Directory.Exists(FileDestination)==false)
    {
    Directory.CreateDirectory(FileDestination);
    }


    if(File.Exists(sDestFile)==false)
    {
    File.Move(sMoveFile,sDestFile);
    }
    else
    {
    File.Delete(sDestFile);
    File.Move(sMoveFile,sDestFile);
    }


    Try this ..

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Of course, the asp.net account has be be granted write access to the folders and such I believe.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width