Quite new to batch (or at least to do more than call scripts and change
directory) here...
For my project, I'm trying to copy all dll from a directory in delivery
directory... I can already to that "brainless" with :
Code: Select all
FOR /R %srcDir% %%f IN (*.dll) DO COPY %%f %destDir%
But the goal has changed since. Indeed, I need to copy dll but not all of them
(I want to copy release dll but not debug dll... for a lib like Qt for instance)
So far here is the sort of terrible thing I tried to write:
Code: Select all
FOR /R %srcDir% %%f IN (*.dll) DO (
SET temp = %%f
SET temp = !temp:d4.dll=!
IF %%f==!temp! COPY %%f %destDir%
)
Could you help me get this working ? (Actually, I'm kind of lost with
variables in batch, between var, %var%, %%var, !var!...)
Manu