Alright, I use xcopy to copy a "setup" directory to each location in my company. But if I delete something out of the original directory, it still exists at the other locations.
I'm trying to find an easy automated way to delete these files that I deleted off the original directory.
I've been tossing ideas around in my head but I haven't found one that I like. 40+ locations and I'd rather have it automated. In some cases I might just delete 3 files out of the directory, meaning I would just want to delete anything at any other locations.
Anyone have a program or know an easy to to delete files that aren't in the original location?
Repackaged company software, using xcopy to push that software out weekly to each server location. When I do an update, I put it on my local server, each night select locations get a push out to other servers. That way, the software is local and not pulled across the WAN when installed.
But if I pull out a directory or a few files here and there on the local server, they still exist on the remote servers. It eventually takes up space and gives error to someone trying to install outdated software.
Trying to figure out an easy way of removing the file off my local server and having it removed off remote servers when it no longer exists. Kind of like File Replication Synchronization.. sync deletions, but I don't get that feature in this case. Xcopy was the easiest way I found to do it because I could use a /D switch to specify a date to update from. Once I push the Update, anything older than Date gets updated.
Now if I could figure out a way to remove anything older than a select date.. that's the question. There has to be something out there, I just need to look.
it has come in handy many times for me; and i believe there is a switch for that kind of command.
<A HREF="http://www.cameronwilliamson.com/nutshell.mp3" target="_new">"Like a scrotum, there it is in a nutshell."</A>
<font color=red>Roll Tide!</font color=red>
<A HREF="http://www.cameronwilliamson.com" target="_new">-={Apathetic As<i></i>shole.}=-</A>
I'll have to check it again. Originally I was going to use robocopy but there was something it did that I didn't like. Didn't think about using it to delete yet. I'll check that out.
You are about to answer a thread that has been inactive for more than 6 months. If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.