Ask Your Question

Revision history [back]

The following works for me to create a new Windows console and run 'dir' in it so I think should work as a basis for what you're trying to do:

def test_cmd():
  def terminated(*args):
    print('terminated', args)
  wingapi.gApplication.CreateChildProcess(['cmd.exe', '/c', 'start', 'dir'], terminated)

Note that your command line was missing the required terminated_cb arg so should have thrown an exception visible in the Messages tool, under the Scripts channel.