Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get NT server date and time.
Message
De
04/06/1999 09:30:55
 
 
À
04/06/1999 07:43:51
Diptesh Patel
Unitelsoftware Ltd.
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00226416
Message ID:
00226470
Vues:
30
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform