This is the command line I want to use inside my VB.NET program. Look for the running process "mpc-hc.exe" and get the commandline of the running process
wmic process where name='mpc-hc.exe' get CommandLine
I want to retrieve the output from that command into a string. I know that it could be done natively in a VB.NET program and I have looked at how it was done. However, I cannot get the code to perform what it did in the commandline I have above.
Any suggestions on how should I implement this? Thanks.