Listing folders in a network shared/mapped folder
Posted on 2004-10-27
I am creating an ASP page that will dynamically link to all the documents on a network share/mapped folder. I am using VBScript as my language of choice. I have been unsuccessful using FSO and WScript. I used the code below to try and list my mapped drives with no success:
Set WshNetwork = CreateObject("WScript.Network")
Set Drives = WshNetwork.EnumNetworkDrives
For i = 0 to Drives.Count - 1 Step 2
Response.Write(Drives(i) & "<br>")
It gives me a Count of 0. I just need to be able to access the folder, so I don't really care which method I use. Thanks for any help you may be able to provide.
PS. The folder location of the documents is not on the web server. This is an urgent request as others are dependent on this today.