Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question regarding the file() command
Message
 
 
To
06/08/2009 12:12:17
Lamar Glover
Southeastern Apparel, Inc.
Dothan, Alabama, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01416491
Message ID:
01416517
Views:
66
You're welcome

>Thank you Sergey. That was exactly what I needed. Cut the response time if the machine is not on from 25 to 3 seconds.
>
>Again, many thanks.
>
>>Try to ping PC in question using WMI
>>
>>loLocator  = CREATEOBJECT('WBEMScripting.SWBEMLocator')
>>loWMI	   = loLocator.ConnectServer()
>>lcComputer = "UpsMachineName"
>>loPing     = loWMI.Get([Win32_PingStatus.Address='] + lcComputer + ['])
>>
>>IF loPing.StatusCode = 0     && available
>>...
>>
>>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform