Question:
How to get a command to run at start-up in Vista?
2013-04-27 03:03:01 UTC
I am fixing a laptop at the moment. To solve the problem I need to get a command to run each time the laptop boots.

I need to it be fully automatic and it would be nice if CMD didnt open or stay open as it happens.


What I am trying to do is run "w32tm /resync" to sync the time to windows time on startup, as the time it wrong on each boot. If there is another way to automate that I would try, but I have tried a lot of fixes for it and none have been that successful.

Thanks in advance.
Three answers:
2013-04-27 03:13:37 UTC
Make a batch file that runs the 'w32tm/resync' command and closes the window by using the exit command. Then place it in the vista 'Start up' folder and the next time you reboot it should open it up and close it.



P.S: Just look into making batch files if u don't know how....its relatively simple.
Steve B
2013-04-27 10:21:30 UTC
Sorry, I don't know Vista, but in XP there is a 'Startup' folder in the 'Programs' tree (C:\Documents and Settings\All Users\Start Menu\Programs\Startup\ )



Anything put in there will run when any user logs on.





NB. the REASON why it's loosing the date/time is MOST LIKELY a 'dead' BIOS Battery. On many laptops, these are 'rechargeable' and often accessible from inside the main battery compartment .. (look for a 'little 'door' in one of the 'side walls').



Replacements for most can be found on eBay (you may have to do a bit of soldering to get the connections sorted out)
Denesh Balasubramanian
2013-04-27 10:17:58 UTC
Make a batch or cmd file to run "w32tm /resync" and put it in the vista Startup folder makes you to run the command at startup.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...