ChrisHelvey
asked on
Maintaining copies of files
Hi Experts,
We have a script (based on xcopy in Win2003 server) that copies all new or changed files on one drive to a "backup" drive. Can anyone suggest a way to make a script that can be run from the command line to see if a file was deleted from the original drive and then delete it from the "backup" drive?
The concept is simple enough but I can't quite get how to do it.
Perhaps an if exist and then write the filenames into a list, then delete the list?
I have NO understanding of VB, so that's no help to me, but I can follow a shell script.
Thanks.
We have a script (based on xcopy in Win2003 server) that copies all new or changed files on one drive to a "backup" drive. Can anyone suggest a way to make a script that can be run from the command line to see if a file was deleted from the original drive and then delete it from the "backup" drive?
The concept is simple enough but I can't quite get how to do it.
Perhaps an if exist and then write the filenames into a list, then delete the list?
I have NO understanding of VB, so that's no help to me, but I can follow a shell script.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER