Could you please anyone update me how to store the output of "imcl listinstalledpackages" command in windows batch file variable?
Thanks in advance.
This topic has been locked.
Pinned topic List the output of imcl in windows batch file
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
brcowan 2000005CYP763 Posts
Re: List the output of imcl in windows batch file2012-11-27T16:34:31ZThis is the accepted answer. This is the accepted answer.Given that that command output is a multi-line output, it may not be all that simple.
C:\Program Files (x86)\IBM\Installation Manager\eclipse\tools>imcl listinstalledpackages com.ibm.cic.agent_18.104.22.16820831_1216 com.ibm.rational.clearcase.nt_i386_8.0.4.0000-8-0-0-04-00-2012C-D120904 com.ibm.rational.clearcase.rc_8.0.4.0000-8-0-0-04-00-2012C-D120904
If the total length of the lines doesn't exceed the maximum command line length, you can try something like this:
for %%x in ('"C:\Program Files (x86)\IBM\Installation Manager\eclipse\tools\imcl" listinstalledpackages') do set INS_PACK=%%x;%INS_PACK%
Advisory Software Engineer
ClearCase Software Advisory Team (SWAT)
IBM Software Group
550 King St
Littleton, MA 01460