Accessing Remote Folders via FileSystemObject 
Author Message
 Accessing Remote Folders via FileSystemObject

I am trying to create a directory listing dynamically via ASP for a
remote directory. The remote directory is mapped to the server with
IIS where the ASP is running.

I am unable to access the Folder Collection for the remote drives.

Script example:

Dim fsoBuyer, oBuyerFolder, fldrAbsPathName, workingFolder

Set fsoBuyer = Server.CreateObject("Scripting.FileSystemObject")

if fsoBuyer.DriveExists("E:\") then

   Response.Write "Remote Drive Exists -- "

else

   Response.Write "It doesnt' exist"

end if

fldrAbsName = fsoBuyer.GetAbsolutePathName("G:\Content\DATA\Export\Catalog\")

On Error Resume Next

Set workingFolder = fsoBuyer.GetFolder(fldrAbsName)

If Hex(Err.number) = "4C" Then
   Response.Write "Path doesn't exist"
End If

....

And I get the 'Remote Drive Exists -- Path doesn't exist' message as
output. How can a remote drive be accessed via ASP/VBScript.

TIA,

Ben Cramer
iPath Solutions



Sat, 02 Apr 2005 05:18:10 GMT  
 Accessing Remote Folders via FileSystemObject
Q197964 - PRB: Cannot Access Remote Files with the FileSystemObject
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q197964

Q207671 - HOW TO: Access Network Files from IIS Applications
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q207671

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US



Sat, 02 Apr 2005 07:53:35 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Accessing Network Drives/Folders/Files via the FileSystemObject

2. remote access on filesystemobject

3. how to access remote file using FILESYSTEMOBJECT?

4. remote file access via ASP (vbscript)

5. Access remote SMTP server via port 25

6. Using ActiveX or Script to Access Remote Mail Server via HTA Application

7. remote file access via ASP (vbscript)

8. Detecting user logged on via Remote Access

9. Access remote SMTP server via port 25

10. Using ActiveX or Script to Access Remote Mail Server via HTA Application

11. Using ActiveX or Script to Access Remote Mail Server via HTA Application

12. proplem accessing public folders via CDO

 

 
Powered by phpBB® Forum Software