>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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao