Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'Network Time' Function
Message
From
01/06/1999 21:46:18
 
 
To
01/06/1999 21:35:51
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00225192
Message ID:
00225194
Views:
13
>I wanna know the VFP Function of Remote Server Time.
>(related DLL or API function.)
>On Windows, We can see the werver time by "Net Time server_name /yes". and I wanna call this function in Visual FoxPro.

Under NT, the Win32 API call NetRemoteTOD() is available; there's no direct equivalent accessible from VFP under Win9x easily. The best way to access it is to redirect the output of the NET TIME \\Servername /YES to a file and read the file. if you don't want the DOS box to appear, you can use ShellExecuteEx() to run the command hidden or minimized, or use my API_APPRUN class to run it, which uses the CreateProcess() API call, and also offers the option of running it hidden or minimized.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform