Backup & Shutdown batch file

August 18, 2010 at 02:50:15
Specs: Windows XP, 512
I have been searching the internet for help with this and I don’t seem to be getting any ware. I want to write a batch file that copies the documents and settings folder to a second hard drive on shutdown. What I have so far is only a test: -
@echo off
xcopy c:\testsource D:\testbackup /m/e/y
What I want to be able to do is copy the documents and settings folder when I close windows XP
down, it would be good to have this batch file loaded on start up so when the computer
shuts down it starts automatically, I would also like it to copy new or changed files rather than overwrite everything all the time. I have seen on the internet programs that can do this for you but that all fine and well when you have money to buy them, but I don’t.
Please can someone help me in my hour of need?
Many Thanks
Tor Fey

See More: Backup & Shutdown batch file

Report •

August 18, 2010 at 03:49:38
Hi Tor Fey,

You are doing right but don't use /m/y in your command

Use only
xcopy c:\testsource D:\testbackup /e to write batch file.
Try it, it will help you.


Report •

August 18, 2010 at 04:18:18
Thank you for you reply

Do you know how I can make this batch file run on shutdown once it is all compiled?

Thanks for your time
Tor Fey

Report •

August 18, 2010 at 04:43:07
Hi There

I have now compiled my batch file in the following way: -

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

Is this write or is there a better way? and how do i make this activate on Windows XP shutdown?

Thank you for your time
Tor Fey

Report •

Related Solutions

Ask Question