Re: Running a simple batch file at startup

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



samah wrote:

samah wrote:
The CMOS battery is gone bad in my Windows XP machine.

Whenever Windows starts, I want to run the 'Date' command to set the
current date. How do I accomplish this?

Thanks in advance.

-samah

Thank you all for your guidance. I am using the bat file as a temporary
solution for a few days only. Definitely I would go for a battery change
as soon as I can.

Thanks & best regards

-samah

What you may not know is that the hardware clock (for which the wafer
battery is a backup to the RTC and CMOS) is *only* used when the
computer is booted up to the POST screen. When the OS loads, it uses
its own clock and not synchronized to the hardware clock. That means
the hardware clock may be accurate (to a couple minutes per year) but
the OS clock can get way off if program(s) consume so much resources
that time slices cannot be allocated to the OS clock to get it updated.
While Windows comes with its time service, it syncs to Microsoft's time
server (although you can change it to use the NIST service, or add more
servers in a registry key so you can select from one of them). Yet it
can be a week, or more, before the time service decides to sync your OS
clock to one of the NTP (network time protocol) servers that sync to the
atomic clock. You might want to start looking at a 3rd party time sync
utility. I use Socketwatch (not free) because it figures out from its
list of worldwide servers which one has the least latency. The
physically closest NTP server may not have the least latency over the
network. There are free time sync utilities (I installed one on my
aunt's host but can't remember what it was anymore).

Even if the hardware clock is off (because of a dead battery), the time
sync utility will update the OS clock. So after the OS loads, and after
a time sync, your OS clock is on time despite the dead battery.
.



Relevant Pages

  • Re: Help with xntp config ( xntpd on AIX 5.1 and 5.2 )
    ... >I would also like one server in the other 3 environments to sync to ... >same environmentwould sync to these 3 systems. ... set both of these two machines as servers. ... Also, for the two servers, configure a local clock at some low-priority ...
    (comp.unix.admin)
  • Re: Error Code 13: Guide Info Will Not Download
    ... austin, tx ... Also I had the time sync issue resolved yesterday, ... The internet connection and firewall can be ruled out as suspects. ... internet connectivity and system clock can be ...
    (microsoft.public.windows.mediacenter)
  • Re: WTF with my computer clock?
    ... You may need to build a real LF antenna, ... ethernet port on one end for NTP sync and a 60kHz transmitter to sync a ... clock on the other. ...
    (sci.electronics.repair)
  • Re: Why SR? (was: Source Independency of Light Speed Without an Aether???????)
    ... >>> If the coordinate system is constructed using light ... > Well you could defer to the sync of another frame. ... And if you DID adjsut the tick rate (which is not really what is covered by clock sync) .. ... Would comparing wavelengh of light in each direction and seeing that they are the same, show isotropy of light, without and clock being required ?? ...
    (sci.physics.relativity)
  • Re: Time Change (Sync)
    ... Hardware Clock Synchronization ... Local Time Synchronization ... Assuming that the clocks of a given set of machines are in sync, ... In the "z/OS MVS world" the time zone is stored in CVTLDTO, ...
    (bit.listserv.ibm-main)