lowanda
-
Total Posts
:
3
- Scores: 0
-
Reward points
:
0
- Joined: 2/26/2009
-
Status: offline
|
What's the code for: strFolder =
Thursday, February 26, 2009 10:35 PM
( permalink)
Dear all, I need help! Look at this code: strFolder = "C:\temp\files" It is correct. But what if I have a folder on a website? I have the folder "files" and I cannot write the correct code. strFolder = "\files" or strFolder = "files" or strFolder = ".files" do not work... The file .asp and the folder "files" are in the same directory, can you help me? Thank you in advance Lowanda
|
|
|
|
webber123456
-
Total Posts
:
58
- Scores: 0
-
Reward points
:
0
- Joined: 9/20/2007
-
Status: offline
|
RE: What's the code for: strFolder =
Friday, February 27, 2009 4:48 AM
( permalink)
to get the physical path of a file or folder, use: "server.mappath" if the current folder is : C:\Inetpub\wwwroot\Script\ then server.mappath("data.txt") produces c:\inetpub\wwwroot\script\data.txt
|
|
|
|