473,396 Members | 1,898 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Mapped drives and FSO

gil
I keep getting "path not found"..

I'm running two servers, the machine running IIS that is running my ASP
script uses the same IUSR account and password as the folder that I am
trying to access through a mapped drive. Permissions should be good.
here is my code:

Set objFile = Server.CreateObject ("Scripting.FileSystemObject")
objFolder = "M:\testfolder"
Set MyFolder = objFile.GetFolder(objFolder)

if I take the same directory path "M:\testfolder" and paste it into explore
it finds the path without a problem...
Any help would be greatly appreciated.

Thank you
Jul 19 '05 #1
3 3316
Yes but keep in mind that your web app doesn't run under the same context. I
would use an UNC name (\\myserver\mytargetfolder) instead...

Patrice

--

"gil" <gi*@nospam.thankyou> a écrit dans le message de
news:%2****************@TK2MSFTNGP09.phx.gbl...
I keep getting "path not found"..

I'm running two servers, the machine running IIS that is running my ASP
script uses the same IUSR account and password as the folder that I am
trying to access through a mapped drive. Permissions should be good.
here is my code:

Set objFile = Server.CreateObject ("Scripting.FileSystemObject")
objFolder = "M:\testfolder"
Set MyFolder = objFile.GetFolder(objFolder)

if I take the same directory path "M:\testfolder" and paste it into explore it finds the path without a problem...
Any help would be greatly appreciated.

Thank you

Jul 19 '05 #2
gil

Thank you..

I forgot I turned off netbios a while ago, been banging my head up against
the wall ever since.

"Patrice" <no****@nowhere.com> wrote in message
news:O6****************@tk2msftngp13.phx.gbl...
Yes but keep in mind that your web app doesn't run under the same context. I would use an UNC name (\\myserver\mytargetfolder) instead...

Patrice

--

"gil" <gi*@nospam.thankyou> a écrit dans le message de
news:%2****************@TK2MSFTNGP09.phx.gbl...
I keep getting "path not found"..

I'm running two servers, the machine running IIS that is running my ASP
script uses the same IUSR account and password as the folder that I am
trying to access through a mapped drive. Permissions should be good.
here is my code:

Set objFile = Server.CreateObject ("Scripting.FileSystemObject")
objFolder = "M:\testfolder"
Set MyFolder = objFile.GetFolder(objFolder)

if I take the same directory path "M:\testfolder" and paste it into

explore
it finds the path without a problem...
Any help would be greatly appreciated.

Thank you


Jul 19 '05 #3
Well, you mapped M:\ under YOUR userid, how does IUSR_YourMachineName know
about M:\?

Use a UNC path, with share access granted to a local IUSR_YourMachineName
that is configured exactly the same as IUSR_YourMachineName on the web
server.

http://www.aspfaq.com/2168

--
http://www.aspfaq.com/
(Reverse address to reply.)


"gil" <gi*@nospam.thankyou> wrote in message
news:#G**************@TK2MSFTNGP09.phx.gbl...
I keep getting "path not found"..

I'm running two servers, the machine running IIS that is running my ASP
script uses the same IUSR account and password as the folder that I am
trying to access through a mapped drive. Permissions should be good.
here is my code:

Set objFile = Server.CreateObject ("Scripting.FileSystemObject")
objFolder = "M:\testfolder"
Set MyFolder = objFile.GetFolder(objFolder)

if I take the same directory path "M:\testfolder" and paste it into explore it finds the path without a problem...
Any help would be greatly appreciated.

Thank you

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: giloosh99 | last post by:
Hello, Im grabbing tables via VB code using visual foxpro ODBC drives. The tables directory is in a mapped network drive. The code works fine and does the job, however if the computer is idle for...
3
by: Bonj | last post by:
I have a service which is a Windows Service, but it is running under a User account - I enter my own credentials on installing. It can access network files by specifying the full UNC path, i.e....
5
by: Nirosh | last post by:
Hi All, Can any one suggest me a best way to do this .. I have a thrid party tool "EXE" that we need to use with our web service to manipulate some complex XML files, which reside in a...
1
by: Mark | last post by:
I posted this question some time ago, but didn't get a response. So, I'll try again. Hello, I have a VB.NET app which polls mapped drives periodically looking for files. However, if the...
2
by: Ben | last post by:
Hi, Thanks for reading this post... I am trying to get the computer/server names from the mapped drives on the Clients PC when they select a file from the upload "browse" button. When the user...
5
by: Marc | last post by:
I am trying to run a web service that has pre-compiled dll's that reference dll's that are on a mapped drive. The web service can not load because it does not see that mapped drive and returns an...
0
by: rmckbrown | last post by:
Using .Net FW 1.1 and VB.net I am calling system.io.directory.getlogicaldrives from a windows service; however, only the local drives are returned, and not my mapped drives. When I execute the...
1
by: CrimeMaster | last post by:
I have write some simple code,this code does not shows network mapped drives when we run it under system account, otherwise under user account it shows them correctly. Any body tell me why did...
1
by: tanya.wang | last post by:
I want to access files from a remote server so I mapped it in my server under z:\ for \\myserver\web\mysite\images\ I added this UNC path to my IIS virtual directory and name it as "upload" but I...
14
AnuSumesh
by: AnuSumesh | last post by:
Hi all, I am writing one application using c# in which firstly I m getting impersonating the user and then i want to retrieve mapped Drives. But issue is when I am calling method in following...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.