Results 1 to 5 of 5

Thread: Fso

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    33
    I am using the file system object's CreateTextFile method to create a text file. Everything goes fine in the script, it displays the message it should saying the file was created, but it isn't. Do I need to specify the path like "http://www.myserver.com/folder/filename" or the path on the server itself, like "C:\webpagedir\folder\filename"? Are there any permissions that need to be set?

  2. #2
    Guest
    You can use Server.MapPath to specify the path for your file.

  3. #3
    in further detail:
    Code:
    Server.MapPath("foldername/filename.txt")
    and if you are already in the folder... for instance www.yoursite.com/foldername/
    you would only need to do this:
    Code:
    Server.MapPath("filename.txt")
    *urp*

  4. #4

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    33
    What if the file doesn't yet exist?

  5. #5
    it should still work.
    *urp*

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