Code: Select all
echo !var:%var:~1,1%=OK! work nice that I want, get aOKdfg
but in this case why !var:s=OK! don't expanded ?
Code: Select all
echo !var:!var:~1,1!=OK! don't work, I get !var:s=OK!
Code: Select all
echo !var:%var:~1,1%=OK! work nice that I want, get aOKdfg
Code: Select all
echo !var:!var:~1,1!=OK! don't work, I get !var:s=OK!
Code: Select all
!var:s=OK!
Code: Select all
aOKdfg
dbenham wrote:It requires two arguments, source and destination.
Code: Select all
ren < newname.txt
where newname.txt contain a single line with two parameters: old.rar new.rar