I am trying to repeat the @replace[1,2,whatever] until 1 is not found in whatever. I looked at rereplace but that doesn't solve my needs. Is there an internal way to do that or maybe a plugin?
for %fn in (*.exe) if "%@verinfo[%fn,ProductName]" NE "" move /r "%fn" "test\%@replace[ ,_,%@verinfo[%fn,ProductName]_%@verinfo[%fn,ProductVersion]_%@verinfo[%fn,FileVersion].%@ext[%fn]]"
or
Code:
for %fn in (*.exe) if "%@verinfo[%fn,FileDescription]" NE "" move /r "%fn" "test\%@replace[ ,_,%@verinfo[%fn,FileDescription].%@ext[%fn]]"
move /d /r Test\* .
then once all EXE files are processed :
Code:
for %fn in (*.exe) move /r "%fn" "test\%@replace[__,_,%fn]"
move /d /r Test\* .
several times until no more __ occures in the EXE name....
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.