Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detect Presence of Network
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01249575
Message ID:
01249665
Views:
21
You don't need IF because DIRECTORY() returns logical value
oApp.NetworkPresent = DIRECTORY("E:\MSDS\DATA")
>I was wondering if there is a better way for detecting the presence of the LAN (Local Area Network)?
>
>The following is what I am using right now to detect whether or not a certain drive letter, folder and subfolder exist.
>
>
>* Detect the presence of the network.
>IF DIRECTORY("E:\MSDS\DATA")
>  oApp.NetworkPresent=.T.
>ELSE
>   oApp.NetworkPresent=.F.
>ENDIF
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform