Click here for important information about

Shutting Down batch file

August 18, 2010 at 06:47:30
Specs: Windows XP, 512
Good Day All

Is this correct way to setup a batch file to copy various folders & Files on shutdown?

Please note the batch file code is only in the testing stage: -

Stage 1: -

Create the batch file with the following code: -

@echo off
xcopy Q:\testsource Q:\testbackup /e/d/c/s/r/y/i

Stage 2

Set the batch file to run on XP shutdown in the following way: -

1.) Start, Run, gpedit.msc
2.) Select Computer Configuration, Windows Settings, Scripts (Startup/Shutdown)
3.) Double Click Shutdown
4.) Click Add, and browse to the script.
5.) Click OK, and OK again.
6.) Close Group Policy and Restart Computer.
7.) The script should now be run on shutdown.

If anyone knows a better way or an improvement I would appreciate your help.

Many Thanks
Tor Fey

See More: Shutting Down batch file

August 18, 2010 at 13:38:41
Assuming that i was deploying this on multiple computers and I didn't have Active Directory available to me to create a GPO, I would use the schtasks command to schedule this as a command to run at shutdown rather than manually editing the local group policy

Report •
Related Solutions

Ask Question