Bleep Bleep In At The Bleep End

Friday, September 01, 2006
Scheduling a regular file copy in windows

Scheduling a regular file copy in windows:

1. Create a batch file in notepad like this...

xcopy c:\whatever\etc\file.doc g:\whatever\etc\file.doc /y

The /y part is a switch that will automatically overwrite the existing file without waiting for manual confirmation.
If there are spaces in any of the folder or file names then put the entire path in double quotes, like this...

xcopy "c:\what ever\etc\file.doc" "g:\what ever\etc\file.doc" /y

2. Save this file as whatever.bat

3. Go C:\Windows\Tasks
Double-click "Add Scheduled Task"
Browse to your batch file
Set the schedule
That's it

4. Right-click on your task and "run" to test it

Posted by d - 12:40 am - 0 Comments

Add a Comment