Is there any way of running a program before shutting off the computer via the start menu?
Even a simple registry hack would do. I want to be able to run a batch file before shutdown that backs up my data.
There are programs that do it but they are overkill/fiddly/pay for software.
Isnt there the XP equivalent of a cron job? If so, it would be super easy. :shrug:
A halfway house would be to have your batchfile doing the backup malarky, and have the last command in there as the shutdown command - stick an icon on your desktop, and all you have to do is train your behaviour to use that instead of the Start->shutdown (not that difficult given the logic of clicking start when you want to finish :) )
Thats an excellent suggestion, I cant believe I never thought of it!
Assign your batch file an icon on the desktop and you will never have to start to turn your computer off again ;)
Or even better, assign a shutdown script to your PC.
Create the batch/CMD/VBS file which backs up your data and put it somewhere outside of your user profile.
Press Start, Run, type in gpedit.msc. Go to Computer Configuration, Windows Settings, Scripts. Double click on shutdown, press Add. Browse to the location of your script, select it. Press OK and close the GP editor. Jobs a goodun!
nb Make sure the script can run fully automated. Windows runs shutdown scripts during the shutdown process, after the Explorer process has been terminated. Also make sure that there isnt too much to back up otherwise your machine will take for f&%*ing ever to shut down!
I knew those MS qualifications would come in handy one day!
Well, you learn something new everyday, good stuff Norphy :)
Good job Im not a techy anymore probably.
You beauty Norphy :bowdown:
A clever man, in any time period.