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.
@echo off REM variables set drive=K:\Archive\laptop set backupcmd=xcopy /d /e /h /i /r /y echo ### Backing up myData... %backupcmd% "C:\myData" "%drive%\myData" echo Backup Complete! @pause
From novice to tech pro — start learning today.