jeffmoore64
Programmer
This code throws the error " Bad filename or number" at the arrow.
The path does exsist on the remote pc.
It does work if I use a local folder though.
Any suggestions on how to get around this?
Dim stAppName As String
Dim stFolder As String
stFolder = "\\waterloo16\shared"
-> If Len(Dir(stFolder, vbDirectory)) <> 0 Then
stAppName = "Explorer.exe /n,/e,/root," & stFolder
Call Shell(stAppName, 1)
Else
MsgBox "The directory does not exist!", vbCritical
End If
The path does exsist on the remote pc.
It does work if I use a local folder though.
Any suggestions on how to get around this?
Dim stAppName As String
Dim stFolder As String
stFolder = "\\waterloo16\shared"
-> If Len(Dir(stFolder, vbDirectory)) <> 0 Then
stAppName = "Explorer.exe /n,/e,/root," & stFolder
Call Shell(stAppName, 1)
Else
MsgBox "The directory does not exist!", vbCritical
End If