Check if path exists 
Author Message
 Check if path exists

Can somebody provide me with the code that determines if the path
\\computername\funchat\chatclient.exe exists?
Please reply to my e-mail too

Greets,

Eric



Wed, 18 Jun 1902 08:00:00 GMT  
 Check if path exists
Hi,

Add a reference to the Microsoft Scripting Runtime (Project menu -
References)

Dim fso As New FileSystemObject
Dim result As Boolean
        result = fso.FileExists("\\computername\funchat\chatclient.exe")

Bye,
Jurn


Quote:
> Can somebody provide me with the code that determines if the path
> \\computername\funchat\chatclient.exe exists?
> Please reply to my e-mail too

> Greets,

> Eric



Wed, 18 Jun 1902 08:00:00 GMT  
 Check if path exists
Here is another way:

Private Function TestFile(ByVal filename As String) As Boolean
  TestFile = True
  On Error GoTo FILENOTFOUND
  FileLen (filename)
  Exit Function
FILENOTFOUND:
  TestFile = False
End Function

On Sun, 4 Jun 2000 12:05:51 +0200, "Carel"

Quote:

>Can somebody provide me with the code that determines if the path
>\\computername\funchat\chatclient.exe exists?
>Please reply to my e-mail too

>Greets,

>Eric



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

 Relevant Pages 

1. Checking if folder/path exists: Outlook Form

2. How to check if a path exists

3. Check if UNC path exists

4. fRefreshLinks Doesn't work if path doesn't exist

5. Existing Database Path

6. File exists in Dos Path?

7. Finding if File and Path Exists?

8. Reading Target path from *existing* shortcut files.

9. Path exists or not?

10. Path exists or not?

11. How do you tell if PATH exists

12. Detecting if a path exists...

 

 
Powered by phpBB® Forum Software