www.webdeveloper.com
Results 1 to 3 of 3

Thread: Help with simple FileSystemObject?

  1. #1
    Join Date
    Dec 2008
    Posts
    12

    Help with simple FileSystemObject?

    Hey guys, I've been playing around with ASP more these days and now that I've read about the FileSystemObject I'm trying to play around with it a bit.

    What I want to do is to create a really simplistic page with 2 functions:

    1) allow the user to create a new directory and name it
    2) allow the user to create a new file and name it

    I know what the attributes are of the FSO, but what would the code look like?

    Also, how would go about outputting a directory file structure? I'm guessing I would need to use a loop and loop through all the folder and filenames?

    Any help would be greatly appreciated! Thanks!

  2. #2
    Join Date
    Dec 2007
    Location
    Dayton, OH
    Posts
    390
    1) allow the user to create a new directory and name it.
    Make a form that gives a relative path and folder name. . .http://www.w3schools.com/asp/met_createfolder.asp

    2) allow the user to create a new file and name it.
    This isn't as easy as you think. File creation is really stupid in VBScript. You can only create text files. There are a few file upload scripts running around out there, but if you want to write binary data(images, or anything useful) you are going to want to look at .NET. Remember, if you can use ASP classic then you have .NET installed and running on your webserver.

  3. #3
    Join Date
    Dec 2008
    Posts
    12
    Thanks for the link I will look that over...and I think to start I only want to allow the creation of text files, nothing complicated just yet.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles