Listing folders in a network shared/mapped folder

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

Response.Write(Drives.Count)

For i = 0 to Drives.Count - 1 Step 2
      Response.Write(Drives(i) & "<br>")
Next

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.

Patrick.

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.
psampsnAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

EDDYKTCommented:
The IUSR_XXX doesn't have privilege to see your local network.

1. create a dll and put on dcom+ and run as specific user
2. try to add the above user into administrators group (just for testing , not recommended to do so)
0
psampsnAuthor Commented:
Thanks for the help.  If I creat a .dll file won't I have to push it to every user?  I am hoping to create a page that is seemless to the user.
0
Shiju SasidharanAssoc Project ManagerCommented:
Hi psampsn
u can make use of the code in the following link to create ur specified dll

                http://vbnet.mvps.org/index.html?code/network/index.html

;-)
Shiju
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.