Hi,
I have some asp pages et up on one server. These display the contents of a directory. Now when I set the directory to a drive on the server everything is ok. I have mapped a network drive to the letter G and wish to see the contents of a directory on this mapped drive. Problem is it just does not seem to be able to do this. In Windows explorer it is happy to open up the mapped drive and show the contents but no via asp.
Code is below.
Dim doofuss
doofuss = "G:"
Dim fso, f, f1, fc, s1
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(doofuss)
Set fc = f.Files
For Each f1 in fc
s1 = s1 & f1.name
s1 = s1 & "<BR>"
Next
Response.Write s1
Thanks very much.
Mark.
I have some asp pages et up on one server. These display the contents of a directory. Now when I set the directory to a drive on the server everything is ok. I have mapped a network drive to the letter G and wish to see the contents of a directory on this mapped drive. Problem is it just does not seem to be able to do this. In Windows explorer it is happy to open up the mapped drive and show the contents but no via asp.
Code is below.
Dim doofuss
doofuss = "G:"
Dim fso, f, f1, fc, s1
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(doofuss)
Set fc = f.Files
For Each f1 in fc
s1 = s1 & f1.name
s1 = s1 & "<BR>"
Next
Response.Write s1
Thanks very much.
Mark.