How do I get <exec> to work for shell commands on Windows platforms?

Erik Hatcher

To <exec> a shell command on Windows, you must execute the command shell followed by the command you want. For example:

<exec executable="cmd">
  <arg line="/c dir"/>
The '/c' is there to exit the spawned command shell after executing the specified command.
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.