Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

(0x800A004C)

Status
Not open for further replies.

MarkElls

Programmer
Aug 26, 2003
57
GB
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.
 
see thread : thread333-940510

[thumbsup2]DreX
aKa - Robert
if all else fails, light it on fire and do the happy dance!
 
I have had a look at this and I am very inexperienced with IIS etc amd this is a company network so very difficult to alter shares etc.

Is there an alternative approach.

I have considered setting up IIS on the target server and placing the ASP pages there.

Are there any other choices.

Cheers.
Mark
 
it's just a matter of standard netowrk administration, being that this is a company network, you'll need to pass the information along to the network admin, and let them take care of the specifics.

[thumbsup2]DreX
aKa - Robert
if all else fails, light it on fire and do the happy dance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top