| | |
Auto timedate update
Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
![]() |
•
•
Join Date: Jul 2004
Posts: 17
Reputation:
Solved Threads: 0
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
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
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.
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
![]() |
Similar Threads
- spydoctor? (Viruses, Spyware and other Nasties)
- Auto generate ID Number (Visual Basic 4 / 5 / 6)
- Stored Procedure to reliably update two tables. (MS SQL)
- regarding about vb6 SStab wif auto add on tab (Visual Basic 4 / 5 / 6)
- after hard shutdown little or no responsiveness with XP (Windows NT / 2000 / XP)
- "Wmedia.exe" (Viruses, Spyware and other Nasties)
Other Threads in the Computer Science Forum
- Previous Thread: what is the best compiler
- Next Thread: I'm having problem with the complexity of this algorithm!
| Thread Tools | Search this Thread |
ai algorithm algorithms amazon assignment assignmenthelp assignments automata battery bigbrother binary bittorrent bletchleypark blogging bomb business cern codebreaker compiler computer computers computerscience connect conversion csc dataintepretation development dfa dissertation dissertations dissertationthesis dissertationtopic ebook employment energy floatingpoint foreclosure foreclosuresoftware fuel gadgets geeks givemetehcodez government graphics hardware history homeowners homeworkassignment homeworkhelp humor ibm idea ideas internet iphone ipod itcontracts jobs kindle laser laws linkbait lsmeans mainframes marketing mobileapplication msaccess nano netbeans networking news os p2p piracy piratebay principles programming rasterizer research sam-being-cute sas science security sex simulation software spying stephenfry study supercomputer supercomputing sweden technology textfield turing turingtest two'scompliment uk virus ww2





