>* Detect the presence of the network. >IF DIRECTORY("E:\MSDS\DATA") > oApp.NetworkPresent=.T. >ELSE > oApp.NetworkPresent=.F. >ENDIF >That should work fine for your stated purpose. Some comments:
You could try one of the following instead: IF DIRECTORY( "\\ServerName\ShareName\Folder\" ) * will work if the local machine has lost its E: drive mapping. In that case * you can use WinAPI calls to re-establish the mapped drive E: * Or, you can change your app to use these UNC-style identifiers instead of mapped drives * Even more "reliable" is IF DIRECTORY( "\\192.168.xxx.xxx\ShareName\Folder\" ) * Since you're specifying a fixed IP address this should work * even if there are NetBIOS or DNS problems (e.g. DNS configuration, Browse Master, WINS) on your network * If this works where checking a drive letter does not, it's useful information * for network troubleshootingAnother comment about the drive letter E: you've chosen: