The following is my nightly_backup.bat file, scheduled to run every night at 11pm.
But though it does the backups ok, I never find it paused in the morning, like I expect it.
echo off
ROBOCOPY C:\PRIMARY B:\BACKUP\PRIMARY\ /e /NFL /NDL
ROBOCOPY B:\BACKUP\ E:\BACKUP\ /e /NFL /NDL
ROBOCOPY B:\ARCHIVE\ E:\ARCHIVE\ /e /NFL /NDL
rem Backup favorites-
ROBOCOPY C:\Users\douglaskbell\Favorites C:\BACKUP\FAVORITES\ /e /NFL /NDL
ROBOCOPY C:\Users\douglaskbell\Favorites B:\BACKUP\FAVORITES\ /e /NFL /NDL
ROBOCOPY C:\Users\douglaskbell\Favorites E:\BACKUP\FAVORITES\ /e /NFL /NDL
DATE /T
pause
:EXIT
DATE /T
pause
is an internal command of cmd.exe, it's not a DOS command. DOS and Windows cmd are not the same thing