Any batch to synchronize my XP system clock?

T

TFS

From time to time, my XP's clock would become late. Eg, last night it was
OK, but this morning, it was 15 minutes later. And every time I had to click
on the clock's "Internet time" to manually sync it.

I'd like to know if there's any command to accomplish this thing, so I could
put it in a batch and make it a schedule task.

TIA
 
T

TFS

I've found half answer to my own question. It seems like the command is "net
time".

The NTP server is already set, but I can't find how to launch the
synchronization using this command.

Any help is appreciated.
 
T

TFS

Ha ha, I've found answers to my own questions :D

For the record, the command is "w32tm /resync"
 
T

Tim Meddick

Hi Airman,
The Windows default time updater (w32time) only update the
clock once a week by default. You have to know how to edit the registry and
convert hexadecimals to change it to once a day. There is an older [NT4]
util from Microsoft called timeserv.exe which, when installed creates
another Time Service that can be configured to update up to four times a
day. This older utility can be had at:

http://www.tacktech.com/download.cfm?file=microsoft/262/timeserv.zip
 
T

TFS

Tim Meddick said:
The Windows default time updater (w32time) only update the
clock once a week by default.
[snipped]

Really? That's strange! Because my scheduled task also works. It's been
working since yesterday -- four updates, and I've no problem nor do I have to
modify any registry key.
 
A

Alister

TFS said:
Tim Meddick said:
The Windows default time updater (w32time) only update the
clock once a week by default.
[snipped]

Really? That's strange! Because my scheduled task also works. It's been
working since yesterday -- four updates, and I've no problem nor do I have
to
modify any registry key.

Tim said "By Default". Your calling it from a scheduled task is not "By
Default"!

Alister
 
T

TFS

Alister said:
TFS said:
Tim Meddick said:
The Windows default time updater (w32time) only update the
clock once a week by default.
[snipped]

Really? That's strange! Because my scheduled task also works. It's been
working since yesterday -- four updates, and I've no problem nor do I have
to
modify any registry key.

Tim said "By Default". Your calling it from a scheduled task is not "By
Default"!

Alister

Of course I saw he wrote the words "by default", but since he was
replying directly to my mail (as my message was included), and since I had
specifically written out "scheduler", it's natural to think he was implying
that even in scheduler, the "default" behaviour is only one update per week.

Unless he had made double mistake: this one and the fact that he
thought I'm Airmain!
 
T

Tim Meddick

All,
The API (on tab3 Adjust Date/Time) has a registry defined update
interval of one week.
--

Cheers, Tim Meddick, Peckham, London.


TFS said:
Alister said:
TFS said:
:
The Windows default time updater (w32time) only update the
clock once a week by default.
[snipped]

Really? That's strange! Because my scheduled task also works. It's
been
working since yesterday -- four updates, and I've no problem nor do I
have
to
modify any registry key.

Tim said "By Default". Your calling it from a scheduled task is not "By
Default"!

Alister

Of course I saw he wrote the words "by default", but since he was
replying directly to my mail (as my message was included), and since I had
specifically written out "scheduler", it's natural to think he was
implying
that even in scheduler, the "default" behaviour is only one update per
week.

Unless he had made double mistake: this one and the fact that he
thought I'm Airmain!
 
T

Tim Meddick

TFS,
I'm sorry my former answer was so complicated, I admit, I'm still
learning and only discovered the "w32tm.exe /resync" command. Previously, I
had installed the NT4 util timesrv.exe, which updates time automatically,
four times a day.
--

Cheers, Tim Meddick, Peckham, London.


TFS said:
Alister said:
TFS said:
:
The Windows default time updater (w32time) only update the
clock once a week by default.
[snipped]

Really? That's strange! Because my scheduled task also works. It's
been
working since yesterday -- four updates, and I've no problem nor do I
have
to
modify any registry key.

Tim said "By Default". Your calling it from a scheduled task is not "By
Default"!

Alister

Of course I saw he wrote the words "by default", but since he was
replying directly to my mail (as my message was included), and since I had
specifically written out "scheduler", it's natural to think he was
implying
that even in scheduler, the "default" behaviour is only one update per
week.

Unless he had made double mistake: this one and the fact that he
thought I'm Airmain!
 
T

TFS

It's OK, no problem :) But it would be nice if you could verify before
writing next time. That could reduce a lot of misunderstanding for everybody.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top