?
Solved

How to access mapdrive?

Posted on 2004-10-05
3
Medium Priority
?
304 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Accepted Solution

by:
webpolsol earned 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

762 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