Tom's Hardware > Forum > Old Man/Woman's Club > Other > Delete files question....
Word :    Username :           
 

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?

Sponsored Links
Register or log in to remove.

Dude, are you using unix? I hate unix.

<font color=red><b>Long live Dhanity and the minions scouring the depths of Wingdingium!

Reply to dhlucke

Windows.. Unix is so east coast. :)

Reply to Riser

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 D: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.

Reply to Riser

check out the program robocopy;

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>

Reply to mrface

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.

Reply to Riser
Tom's Hardware > Forum > Old Man/Woman's Club > Other > Delete files question....
Go to:

There are 1204 identified and unidentified users. To see the list of identified users, Click here.

Please mind

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.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them