|
Thread: Fso
-
Mar 21st, 2001, 08:09 AM
#1
Thread Starter
Member
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?
-
Mar 21st, 2001, 08:40 AM
#2
You can use Server.MapPath to specify the path for your file.
-
Mar 21st, 2001, 05:49 PM
#3
Member
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")
-
Mar 21st, 2001, 06:14 PM
#4
Thread Starter
Member
What if the file doesn't yet exist?
-
Mar 22nd, 2001, 11:46 AM
#5
Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|