Auto timedate update

Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
Reply

Join Date: Jul 2004
Posts: 17
Reputation: Kimmi is an unknown quantity at this point 
Solved Threads: 0
Kimmi Kimmi is offline Offline
Newbie Poster

Auto timedate update

 
0
  #1
Sep 28th, 2004
Hi, it's been quite a while since my last post I know the user would be prompted to key in the new time and date if "time" and "date" are keyed in via DOS command prompt. Hm, just wondering, is it possible that I can have a .bat file that would just update the PC to the latest correct timedate automatically based on a reference PC timedate? :o Any
Reply With Quote Quick reply to this message  
Join Date: Oct 2003
Posts: 18
Reputation: Venjense is an unknown quantity at this point 
Solved Threads: 0
Venjense's Avatar
Venjense Venjense is offline Offline
Newbie Poster

Re: Auto timedate update

 
0
  #2
Oct 4th, 2004
If you are using windows 2K/NT/XP use the net time command in a batch file. You have to put several parameters in and a little knowledge of NTP (Network Time Protocol) is helpful.

An example goes like this

net time \\thecomputer /set

This will set the time with the computer named thecomputer

There is also a command to set NTP servers.

net time /setsntp:thetimeserver

This will make the computer thetimeserver set as the NTP server that the Windows Timeservice will use to set the time.

In XP SP2 its even easier. Double-click on the date and time in the system tray. Select the Internet Time tab. Set the setting and away you go. Well that isn't a batchable command but it easy.

On other OS's there are third party NTP clients to use from a command prompt to do the same function as net time.

Do a search on CNET Downloads for NTP CLIENT and you will get a bunch of listings.
Venjense
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Computer Science Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC