Solved

How to access mapdrive?

Posted on 2004-10-05
3
302 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 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

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…
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

696 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