If you miss a day, you'll also miss copying some files because you're limiting your copy to just the files created "Today".
If you're using this batch file as a means of backing up critical data files, you might just want to use a broader criteria for the files being copied.
I use XCOPY to keep all my data files on C: backed up to D:
I just incorporated the XCOPY lines into my end of day shutdown script (batch file).
When done properly, with the correct switches, xcopy copies only files that are either new or have been updated since the last backup.
My batch file looks something like this:
@Echo off
cls
Rem Backup My Documents and all sub-folders/files.
xcopy "C:\Documents and Settings\Alex\My Documents\*.*" "D:\My Documents\" /s /y /H /R /D
Rem Back up my WordPerfect files.
xcopy "C:\MyFiles\*.*" "D:\MyFiles\" /s /y /H /R /D
Rem Back up all the files for My Web Page.
xcopy "C:\My web page\*.*" "D:\My web page\" /s /y /H /R /D
Rem Back up my email folders.
xcopy "C:\Documents and Settings\Alex\Local Settings\Application Data\Identities\{CC1A6FC7-0D07-4169-865D-56EBDD76EB8B}\Microsoft\Outlook Express\*.dbx" "D:\MyEmailFiles-Backup\" /s /y /H /R /D
Rem When the backup is done...Shutdown!
%windir%\System32\shutdown.exe -s -t 00 -f
On an average day, I may be backing up only one or two files, so the batch file runs and finishes in just a few seconds. It assures that I never shut down my PC with unsaved data files.
In this case D: is my backup hard drive.
Batch files can get really complicated or you can "KEEP IT SIMPLE".
Just add lines to accommodate any folders in your PC that contain valuable data.
That would be different for each person.
Even though I make a Ghost backup of my entire C: drive, at least once a week, my shutdown batch file assures that I keep all my data files backed up between Ghost backups.
So, don't loose your stuff to a HD crash.
Backup, Backup, Backup!!!
The Shadow