I am working on some code for a friend. This is what I have so far. It is supposed to be a backup script.
@echo off
title Backup Script
color 5a
if exist E:\backup goto prev
mkdir E:\backup
goto prev
:prev
echo Press any key to start Backup...
pause>nul
rd E:\backup /s /q
mkdir E:\backup\Desktop
mkdir E:\backup\Documents
msg * "Do not Close out previous Windows until Done."
copy "C:\Documents and Settings\Person\Desktop" "E:\backup\Desktop"
copy "C:\Documents and Settings\Person\My Documents" "E:\backup\Documents"
echo "Finished! Press any key to Exit."
pause>nul
exit
But whenever I make a change in the originating directory, it does not show on the backup drive.
Thanks for any help!