A user just wrote to me to ask about using
The following is a simple test, it invokes netstat and displays the results:
Executing a shell command (like DIR and SET) is a little trickier. You can’t execute set directly, you’ll need to execute the command interpreter (cmd on Windows) and have it execute set. And you MUST pass /c as an argument – this tells the command interpreter to run and terminate upon completion, without /c it will be waiting for an explicit exit command and will never return.
Here is an example using set:
Note: Obviously these example are Windows specific.