Computing.Net > Forums > Web Development > IIS and Drives Collection (FSObj)

IIS and Drives Collection (FSObj)

Reply to Message Icon

Original Message
Name: duquetten
Date: August 30, 2005 at 08:34:14 Pacific
Subject: IIS and Drives Collection (FSObj)
OS: Win 2000
CPU/Ram: 2.39 GHz/1 GB Ram
Comment:

Hi All,

I have an IIS server running on a win 2000 box. I created an asp page and am trying to create a list of all network drives. I use the fileSystemObject Drives collection but it will not give me a list of the network drives that are mapped. I am able to get a list of all physical drives (hard drives, cd rom drives, floppy drives). When I run the same code from a VBS file on the computers desktop it gives me all of the mapped drives, including network drives. Does any one know if there is something in IIS that is prohibiting this? As a side note, this is working on a win XP box with IIS. The code I am using for the ASP page is:
<HTML>
<Body>
<%
Dim fs,dc,d
Set fs = CreateObject("Scripting.FileSystemObject")
Set dc = fs.Drives
For Each d in dc
response.write d & "
"
Next
%>
</body>
</HTML>

And the code for the VBS file from my desktop is:
Dim fs,dc,d
Set fs = CreateObject("Scripting.FileSystemObject")
Set dc = fs.Drives
For Each d in dc
msgbox d
Next


Report Offensive Message For Removal








Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: IIS and Drives Collection (FSObj)

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software