Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Novell Server
Message
 
 
À
06/07/2000 09:39:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00388830
Message ID:
00388885
Vues:
7
>I've got an application that is time sensitive and people change the time on the workstation. Is there any way to programmatically set the time of an individual windows workstation to that of a novell 4 or 5 or nt4 server?
>
>Thanks
>Tom Welch

There is a workstation configuration setting in Novell that will make the workstation synchronize with the server when domeone logs in. Check out the available NET.CFG settings in your Novell documentation.

If you run NT server with login scripts, you can add NET TIME \\SERVERNAME /SET to it.

But neither one keeps the workstations in synch the entire time they are logged in. You can add a timer to your system and have it fire at some interval. When it fires you can synch up the server and workstation each time. There are two options for this.

1. Read my FAQ on synching the time between NT servers. The WinAPI calls are only supported under NT so if you are running Win9X, go to option 2.

2. Create a file on the server using freate() or strtofile(). Use Adir() to read the datetime string of the creation date. The date will be the date reported by the server, not the workstatino that created it. Parse the string and set the workstation time. You can use part of the code in mny FAQ for this. Those functions are supported under Win9X.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform