Techguy2009
Technical User
Hello,
I am sort of new to making .Bat files. I don't think I have made one since I was a little kid using windows 3.1. Anyways, I am trying to accomplish a .bat file that copies files from on pc to the other, only for the last 7 days, and I would like it to delete anything older than 7days on both pc's.
I have the copy with 7days rule working great, but I can't figure out how to make it delete anything older than 7 days. I'm assuming that robocopy isn't the command to do the delete part but I am unsure. Here is what I have, suggestions?
robocopy.exe E:\Backup\PC1 \\PC2\share\TEST /MAXAGE:7
I am sort of new to making .Bat files. I don't think I have made one since I was a little kid using windows 3.1. Anyways, I am trying to accomplish a .bat file that copies files from on pc to the other, only for the last 7 days, and I would like it to delete anything older than 7days on both pc's.
I have the copy with 7days rule working great, but I can't figure out how to make it delete anything older than 7 days. I'm assuming that robocopy isn't the command to do the delete part but I am unsure. Here is what I have, suggestions?
robocopy.exe E:\Backup\PC1 \\PC2\share\TEST /MAXAGE:7