DOS command input:
tasklist|find /i "explorer.exe"
How to pass it to
RunProcess or similar function and get the output?
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.Sign up to join this community
RunProcess does not run shell commands (things you might type into your terminal). It runs processes, as the name suggests.
If you want to run shell commands, then you have these options:
Run(it does not give you the output)
Import["!yourcommand", "String"]or similar (to get the output)
StartProcessand pass the commands to it on its standard input.
StartProcesshas an example like this.
/cflag and tell it what to execute.
RunProcesshas an example like this.