Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get NT server date and time.
Message
From
04/06/1999 09:30:55
 
 
To
04/06/1999 07:43:51
Diptesh Patel
Unitelsoftware Ltd.
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00226416
Message ID:
00226470
Views:
31
>How do I get date and time of NT server to register in to log file, from application running from Win 95 node.
>

Redirect the output from the NET TIME command into your log file. The NET TIME command can be launched with VFP's native RUN command or with an API call (the FFC in VFP6 has a ShellExecute class that uses the ShellExecute API call, or my API_APPRUN class downloadable from here on UT both will work without having to understand the in32 API in detail.)

The format for the NET TIME command should be

NET TIME \\servername /YES >> log file name
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