Link to home
Start Free TrialLog in
Avatar of vijay_wipro
vijay_wipro

asked on

How to access mapdrive?

 I have mapdrive in f drive...
I want to get the folder names in mapdrive, i'm trying below code it's giving below error...

Error Type:
Microsoft VBScript runtime (0x800A004C)
Path not found


Please help me to resolve this....

Here is my code
------------------
set fs=Server.CreateObject("Scripting.FileSystemObject")
Set fldr = fs.GetFolder(server.mappath("\\ip\\folder"))
i=0

for each thing in fldr.SubFolders
      response.write thing.name
      i=i+1
next
i=0
set fs=nothing
ASKER CERTIFIED SOLUTION
Avatar of Andrew Barrington
Andrew Barrington
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial