I am trying to write a small batch file for a task I do regularly. I have never used the for
before and this is the first time I am trying this. This is what I have come with so far:
for /f %i in ('ct find . -ver lbtype(%1) -print') do ct lsvt -g %i
Basically it tries find all the files with a given cleracase label and then display the version tree of those files. The problem is in the %1
. But when I try to run this sometime it gives me an error saying that -print )
was not expected or sometime else it just prints this command on the command prompt. I guess it is getting confused between multiple paranthesis. Any clues how o I solve this?