Solved How to store result of a command and parse it
Nandita January 27, 2016 at 22:28:40 Specs: Windows 7
I'm trying to extract the process ID of an app pool using dos. I'm using appcmd list wps /apppool.name:DefaultAppPool but the result I get is in the format WP "1234" <apppool:DefaultAppPool>. I want to store this output in a variable and extract the 1234 and pass it to another command. How do I store and extract?
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.