|Perl Monk, Perl Meditation|
Re^2: unpacking wmic command's unicode outputby goibhniu (Hermit)
|on Nov 13, 2008 at 20:38 UTC||Need Help??|
Very good, but it doesn't quite meet our use case. Our Admin knows the exe name he's looking for, but there could be several running at one time differentiated by the command line arguments. Task Manager shows them all, but not the command line arguments, so the admin doesn't know which to kill. wmic process list full produces outpout similar to your /format:value, so we did things like wmic process list full | find /i "ourprog.exe", but when more than one was running, couldn't tell the pid (because it's on another line). Just plain wmic process put all the data on one line so that's what I was thinking about and it colored my design space.
I actually like your hash-ification better, and if I were writing a larger program (I see you have Tk in your use statements) that's exactly how I'd go.
#my sig used to say 'I humbly seek wisdom. '. Now it says:
I humbly seek wisdom.