Could you please anyone update me how to store the output of "imcl listinstalledpackages" command in windows batch file variable?
Thanks in advance.
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.
Updated on 2012-11-27T16:34:31Z at 2012-11-27T16:34:31Z by brcowan
brcowan 2000005CYP739 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_188.8.131.5220831_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
Web: http://www.ibm.com/software/rational/support/Updated on 2014-03-26T13:44:56Z at 2014-03-26T13:44:56Z by iron-man