I have a remote connection to a server using a VPN
I need to validate folders when connected.
When I use the UNC path to the folder, the Directory() command hangs for about a minute if the VPN connection is not active, but returns true when connected and the folder exists
Is there a better way to validate folders?
I need to validate folders when connected.
When I use the UNC path to the folder, the Directory() command hangs for about a minute if the VPN connection is not active, but returns true when connected and the folder exists
Code:
Example:
lcDir='\\192.168.1.250\SomeFolder'
IF DIRECTORY(lcDir)
[indent]return .t.[/indent]
ENDIF
Is there a better way to validate folders?