I have a batch file, which I want to use for automating some backups, and although it seems to follow correct syntax, it just hangs (freezes). Here is the code:
set backupcmd=xcopy /d /e /h /i /r /y
echo ### Backing up myData...
%backupcmd% "C:\myData" "%drive%\myData"
echo Backup Complete!
I do have more code that I want to put into the file but it will essentially be following the same structure as this (just a bunch of xcopy commands). I'm not sure why this isn't working...no error message is displayed; it just echos back "Backing up myData..." in the DOS window and then sits like that, not responding.