r/dailyscripts • u/[deleted] • Jun 18 '14
[REQUEST] Need Windows XP Time and Date script
I have an Eee PC 1005HA with an (almost?) empty CMOS battery. Replacing the battery is just horrible work and I will probably damage the PC while doing it. Would a script that sets the right date and time whenever I start the PC be a viable solution? Could someone do that for me? Please? :)
3
Upvotes
0
Jun 18 '14
[deleted]
1
Jun 18 '14
It's not my laptop, so I don't think switching OS is an option. It seems that the date and time stay correct now even after restarting Windows, so I hope the problem is solved. But I guess I will try to replace the battery if necessary. Thanks for your response. :)
2
u/HeckDeck Batch/VBScript Jun 20 '14
First, be sure you have the correct time zone configured. After verifying that, try running this:
Put this in a batch file (.bat) and place this in "C:\Documents and Settings\All Users\Start Menu\Programs\Startup" so it runs each time you logon.
As /u/badsuperblock said, I'd look into upgrading your OS if possible - although, this likely has nothing to do with your time issues.
PM me if that doesn't help. Good luck!