Solved

How to access mapdrive?

Posted on 2004-10-05
3
294 Views
Last Modified: 2008-01-09
 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
0
Comment
Question by:vijay_wipro
3 Comments
 
LVL 1

Accepted Solution

by:
webpolsol earned 125 total points
ID: 12225397
your server.mappath is wrong

set fs=Server.CreateObject("Scripting.FileSystemObject")
Set fldr = fs.GetFolder(server.mappath("."))
for each thing in fldr.SubFolders
  response.write thing.name  &"<br>"
next
set fs=nothing

try server.mappath("./ip/folder")

hope this help

mac : )
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now