Kevin - let me know how this turned out. I just had a client to create a log in system for his employees which record their work time. I haven't created any code as yet but was also concerned about using the time from the local computers.
Thanks
Gaylen
>I need to check the time on the XP server prior to allowing a user action (basically it's an employee clock-in and I need to ensure they don't change the system time beforehand).
>
>I used to use the following command prompt from within vfp...
>net time \\servername /set /Y
>
>This changed the time on the local machine to be the same as the server's time. However it doesn't seem to work anymore under an XP server. (?)
>
>
>Ideally I would like just to query the server's datetime and to use _that_ datetime instead of the local one (not necessarily to change the local date/time).
>
>Is there a class of some sort available that will do this under VFP6?
>
>I realise I could use online atomic clock software, but not all pcs on this network have internet access.
>
>
>Hopefully someone here will be able to help.
>
>Thanks in advance,
>
> -Kevin.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only