Copying 1 file into 600+ folders to overwrite original in Win7?

Soldato
Joined
12 Jul 2007
Posts
8,217
Location
Stoke/Norfolk
Hi there, I'm trying to update a single game file for a Flight Sim (updated Radar Warning list) and I'm after an easy way to do the following in Win7 -

Copy 1 master file (RWR List) and add it into all 600 Aircraft folders so it'll overwrite the original.

I know you could manually go into all 600 folders but that'd take ages and maybe enough to finally crack my sanity! So there will be an easier way to do this I just don't know it yet.

Can anyone give me a quick heads up on how to do this?

Ta!
 
Put the new file in the root folder of where you want to start and then run this from a cmd line at that location...

for /f "delims=" %A in ('dir "oldfile.rwr" /s/b') DO (copy "newfile.rwr" "%A" /Y)

obviously replacing the names of the files within the quotes.
make sure you want to do it though as it will just over right the contents of the destination file.
it'll only overwrite that file where it exists though, so it won't add it to a folder where it isn't already.
 
Thanks for that, it worked perfectly! - Took awhile to get my rusty DOS skills going again trying to point to my games root dir though :o
 
Back
Top Bottom