Cool Batch Backup with Task Scheduler and Versioning

Version 1.1

Last updated on
Subscribe to Internet Tips and Tools Feed

Here is a completely customizable batch backup script. With this script you can backup any folders on your PC on a regular basis. The script automatically sets a schedule in Task Scheduler to backup your files daily.


  • Compatible with Windows XP, Vista, 7, 8 and 10
  • Completely customizable batch script that is well documented with comments
  • Specify how often to backup
  • Specify how many versions to backup


Downloaded 0 times.
Please make a donation to reveal the download link.

How to Use

Download batbackup.bat and then right-click on the file and click "Edit". Edit the following options in the file:

set drive=F:
set folder=Cool Batch Backup

set folder[0]=%userprofile%\Favorites
set folder[1]=%userprofile%\Desktop
set folder[2]=%userprofile%\Documents
set folder[3]=%userprofile%\Music
set folder[4]=%userprofile%\Pictures

set minutes=30

Save the file and then right-click on the file and click "Run as administrator". The script will create all the folders for you on the backup drive and create a shortcut on the desktop to the log files. The script will ask you how many versions of your backup files you would like to have:

1 = Just 1 version of the backup
2 = 7 versions. One for each day of the week
3 = 30 versions. One for each day of the month

You may customize other options in the bactch script. If you are knowledgeable in batch programming or in command prompt commands you can edit many options such as the backup command. Currently it is using xcopy with paramaters to only copy newer files by date than the files already copied (\d switch).


2/18/2020 - Version 1.1 - Some versions of Windows 10 were not able to correctly open the .vbs file from Task Scheduler and Task Scheduler was having error "The operation was canceled by the user." Windows 10 should know to use wscript.exe but it doesn't. So now the script creates the task with "wscript.exe '%programfolder%\batbackup.vbs'" for better Windows 10 support.

3/21/2016 - Version 1.0 - Cool Batch Backup with Task Scheduler and Versioning created

Last updated on February 19, 2020
Created on March 21, 2016

Back to
Subscribe to Internet Tips and Tools Feed        

User Comments

There are 4 comments.

Displaying first 30 comments.

1. Posted By: aa00528 - - April 13, 2017, 4:43 am
Bravo Jeff, currently using it in order to protect from ransomware.
If I may ask you to add some parameters in the batch, in order to list the existing scheduling, enable/disable, load/unload...
Thanks for it

2. Posted By: Jeff - - April 13, 2017, 2:58 pm
Hi aa00528,

It creates a folder on your desktop called "Cool Batch Backup". In that folder is log.txt which shows when the backup has ran. Whenever you run batbackup.bat again it replaces the old schedule with the new one. If you want to see the current schedule in Windows Task Scheduler then click on Start in windows and type: taskschd.msc

Then press enter and click on "Task Scheduler Library" and you should see "Cool Batch Backup" in the list. There you can right click on it and disable it or delete it.


3. Posted By: aa00528 - - April 20, 2017, 2:02 pm
Thanks Jeff

I appreciate you having taken some time for these explanations.

Have a nice day

4. Posted By: sanka - - January 22, 2020, 12:04 pm
how to create backupfolders with date and time stamps ( folder-22-01-20-23-04