using FileSystemObject FolderExists for remote dir? 
Author Message
 using FileSystemObject FolderExists for remote dir?

i'm trying to test for whether or not a directory on a remote machine
exists.

i've tried a bunch of different variations on the syntax for the
FolderExists method from msdn's reference manual:
http://www.*-*-*.com/

if anyone could tell me what i'm doing wrong (or if it's not supported
at all to test if a remote path exists on a network share), that'd be a
big help.  below is a snippet of what i'm trying to do:

-----------------------
dim status, path

'  i tried both of these, still returns false when i know it exists
'path = "\\foo\bar\some_path\"
'path = "x:\some_path"

status = ReportFolderStatus(path)
response.write status
response.end

Function ReportFolderStatus(path)
   Dim fso, msg
   Set fso = Server.CreateObject("Scripting.FileSystemObject")
   If (fso.FolderExists(path)) Then
      msg = path & " EXISTS."
   Else
      msg = path & " DOESN'T EXIST."
   End If
   ReportFolderStatus = msg
End Function

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. using FileSystemObject FolderExists for remote driver

2. how to access remote file using FILESYSTEMOBJECT?

3. How to make DIR , delete DIR using wininet.dll

4. How to make DIR , delete DIR using wininet.dll

5. Equivalent of (dir *.txt) with FileSystemObject ?

6. FileSystemObject can't see shared dir

7. remote access on filesystemobject

8. Accessing Remote Folders via FileSystemObject

9. Remote FileSystemObject

10. FileSystemObject Write to Local Drive from Remote Host?

11. Problem with remote instance of FileSystemObject

12. FileSystemObject - Remote Server and NFS

 

 
Powered by phpBB® Forum Software