PPRuNe Forums - View Single Post - a fast way to replace 1000+ files?
View Single Post
Old 6th February 2009 | 19:27
  #5 (permalink)  
In rerum natura
15 Anniversary
 
Joined: Apr 2008
Posts: 27
Likes: 0
From: UK
Late as ever.
For those without Excel (a brilliant piece of lateral thinking BTW).

First ensure that the new file blank.bmp has been copied to the existing oldpix data folder & then create the following batch file (my_name.bat) in a convenient location (e.g. root), modifying folder/file names and paths as necessary.

MD c:\newpix
CD c:\oldpix
MOVE blank.bmp c:\newpix
DIR /B > c:\newpix\filelist.txt
CD c:\newpix
FOR /f %%n IN (filelist.txt) DO COPY c:\newpix\blank.bmp c:\newpix\%%n
I think this will work but no promises as I only used a set of 30 files to test it. Note, the FOR DO statement is all one line.
In rerum natura is offline  
Reply