Solved

How to access mapdrive?

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

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…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

822 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