On Tue, Dec 20, 2011 at 12:34 PM, Ben Scott <[email protected]> wrote: > On Tue, Dec 20, 2011 at 12:00 PM, Sam Cayze <[email protected]> wrote: >> Need to replace file.jpg with a new version of file.jpg across about 100 >> directories. > > FOR /R "d:\top" %i IN (file.jpg) DO COPY "d:\other\new.jpg" "%i"
Whoops. Note to self: Test first, then post. ;-) Try this: FOR /R "d:\top" %i IN (file.jpg) DO IF EXIST "%i" COPY /Y "d:\other\new.jpg" "%i" -- Ben ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected] with the body: unsubscribe ntsysadmin
