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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FSO won't access mapped network drive.

Status
Not open for further replies.

albie101

Programmer
Oct 8, 2001
50
NZ
I created a network map on my IIS server to a network share in my network. I gave the map the drive letter F:. I can view and access the share from the web server desktop, but when I run the following code, F: is nowhere to be found. I have also tested FileExists on a file in that share, and still no luck.
Code:
<%@ Language=VBScript%>
<%Option Explicit%>
<%
dim objFile
dim objDrives
dim i

Set objFile = Server.CreateObject(&quot;Scripting.FileSystemObject&quot;)
Set objDrives = objFile.Drives
FOR EACH i IN objDrives
    Response.Write i & &quot;<br>&quot;
NEXT
%>


That code returns A: C: D: E: to my browser window. Where's F: ??

Stumped.
 
Did you try the UNC path

\\servername\sharename ....

also try this

server.mappath(&quot;filename&quot;)
DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Hi,

Yeah - I've tried both and still no luck :(

Thanks
Emma
 
maybe it is a permissions issue. Does IUSR_ have permission to read F: or the file on the networked computer?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top