Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
drgt
- Posts: 160
- Joined: 21 Sep 2010 02:22
- Location: Greece
#1
Post
by drgt » 10 Nov 2013 00:30
Hi
I want to sync my clock at startup.
There is a delay till all processes and network starts.
Will this work even if network has not started yet?
ping -w 1000 -n 300 127.0.0.1 >nul
w32tm /resync
-
foxidrive
- Expert
- Posts: 6031
- Joined: 10 Feb 2012 02:20
#2
Post
by foxidrive » 10 Nov 2013 01:43
It may work - put a pause after the ping command and see if it appears later.
If you have Vista or later then you can use the timeout command.
-
drgt
- Posts: 160
- Joined: 21 Sep 2010 02:22
- Location: Greece
#3
Post
by drgt » 10 Nov 2013 01:57
No, I have XP...
Thanks.