Hello all;
I am trying to write a backup batch file and I want the code to direct the backup to a specific directory based on the day of the week, Monday, Tuesday, etc.
I believe the coding should look something like:
if dayname = Monday then
copy *.* f:\monday /y
else
if dayname = Tuesday then
copy *.* f:\tuesday /y
etc, etc for Monday through Friday with an end if at the end.
Can anyone provide me with the proper nomenclature? I volunteer for a non-profit and I'm trying to get them to make sure and backup their files.
Thanks in advance for all the help.
Regards,
Ronc