Search found 2 matches
- 20 Mar 2015 14:33
- Forum: DOS Batch Forum
- Topic: Daily backup batch file
- Replies: 4
- Views: 8955
Re: Daily backup batch file
I finally figured it out! Every example I used didn't work, and I realized it was because long filenames and folder names were confusing xcopy. Here is the script I ended up using with no problems: @echo off set folder=Backup_%date:~4,2%_%date:~7,2%_%time:~0,2%%time:~3,2% mkdir E:\ACCOUNTING_BACKUPS...
- 19 Mar 2015 01:44
- Forum: DOS Batch Forum
- Topic: Daily backup batch file
- Replies: 4
- Views: 8955
Daily backup batch file
I'm trying to write a batch file that will create a folder using the current date, then copy a folder of files with sub directories to this folder. I can create the dated folder, but can't figure out how to instruct xcopy to copy everything to the folder that was just created. Anybody have any ideas?