New
#1
Batch File Question
I am incredibly ignorant about batch files, yet I'd like to create one to do weekly backups of my documents. The following .bat file more or less works, but it needs tweaking.
xcopy /e /y /c /s /i c:\users\scott\documents h:\Backup
The H: drive is a large external drive. The above file does work, but it seems to simply overwrite the folder on the H drive, and I want it to keep the weekly backups until I manually delete them. I thought the /I switch would cause it to create new versions (Backup (1), Backup (2), etc), but that seems not to work. Ideally there would be code that would append the current date to the file called Backup, but I can't seem to find any workable method for doing that.