Trying to write 2nd's cmd window's stdout that starts from 1st cmd to a variable but haven't succeed yet... Seems to me that some redirection with "1", "2", "&" must take place, but don't know how to do it... Here's my trying:
for /f "usebackq tokens=2 delims=: " %i in (`start /i pmon.exe ^|findstr /i "memory"`) do echo %i
Here the 2nd processing cmd line of the pmon.exe proccess:
Memory: 2000000K Avail: 500000K PageFlts: 15000 InRam Kernel:10000K P:200000K
The result must be "2000000K" in 1st window, 2nd window must be closed. Thanks
![Smile :)](./images/smilies/icon_smile.gif)