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 21:15:17
 
 
À
04/06/1999 20:15:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00226416
Message ID:
00226737
Vues:
28
>Here's another solution. Write a COM object with just one method: GetTime. This method should call the NetRemoteTOD() Win32 API function. It can also make any adjustments for local time, daylight savings time, etc.
>
>Install your COM on the server and access it using DCOM. This would be probably the most accurate method to retrieve server's time.
>

Actually, a simple return of DATETIME() would do it if it ran as a remote out of process server. No API needed at all!

>Vlad
>
>>How do I get date and time of NT server to register in to log file, from application running from Win 95 node.
>>
>>TIA
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform