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.