Computer Hope

Software => Computer programming => Topic started by: rega83 on March 28, 2012, 03:15:23 PM

Title: datetime batch file?
Post by: rega83 on March 28, 2012, 03:15:23 PM
we have 3 client computers with a windows server ,,these computers have joined with the windows server through networking,some times the time will change on the client computers ,i want create a batch file(notepad) for time ,when i double click on the batch the time  will be equal with windows server time ,so how i do it?
Title: Re: datetime batch file?
Post by: Squashman on March 28, 2012, 05:19:39 PM
http://technet.microsoft.com/en-us/library/cc758905(v=ws.10).aspx
Title: Re: datetime batch file?
Post by: Geek-9pm on March 28, 2012, 05:24:45 PM
Well, I don't understand why you don't want to use the exact time, which is a feature in most present windows OS  PCs with Internet aces.

If a PC  fails  to keep time, it is either a  a security breach or a broken clock clock chip/crustal. Or maybe automatic time check was not enabled. But it is hard to imagine why anyone would want to do that.
Title: Re: datetime batch file?
Post by: Squashman on March 28, 2012, 05:28:05 PM
Geek, I believe he is trying to get the client computers that are joined to the domain to sync with the time of the server.
Title: Re: datetime batch file?
Post by: Geek-9pm on March 28, 2012, 06:42:13 PM
Geek, I believe he is trying to get the client computers that are joined to the domain to sync with the time of the server.
You are right. I mus read his problem. The link you provided should solve his problem. My bad.  :-[
Title: Re: datetime batch file?
Post by: Rob Pomeroy on March 29, 2012, 01:50:00 AM
Code: [Select]
net time \\servername /set