Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

@replace[search,replace,object]

Apr
1,792
15
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?
 
i just keep issuing:

Code:
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....
 

Similar threads

Replies
2
Views
2K
Back
Top