Note: put a space between %n\n" and $dir .
In this case, the -fmt part -fmt not provide execution, even sent via the cleartool channel
maybe
/c cleartool lsco -r -cvi -fmt "cleartool unco -rm %n\n"$dir|cmd
will work, but I doubt it: the problem is visible when considering the entire command that was run during configuration using clearmenuadmin.exe :
cmd /c cleartool lsco -r -cvi -fmt "cleartool unco -rm %n\n"$dir|cmd
|cmd or |ct apply to the first cmd, not to the cleartool command.
I would prefer to use an external script (to wrap the unco )
/c myUnco.cmd $dir
with myUnco.cmd stored in the directory referenced by your environment variable% PATH%, s;
cleartool lsco -r -cvi -fmt "cleartool unco -rm %n\n" %1|cleartool
Here (in the .cmd script) %1 , the $dir character is displayed, passing through the sharpen context menu.
Vonc
source share