SHARE
TWEET

Running shell command on Windows from Python

a guest Apr 16th, 2012 277 Never
  1. pythoncom.CoInitialize()
  2. shell = win32com.client.Dispatch('WScript.Shell')
  3. shell.Run(command, 1, False)
  4. pythoncom.CoUninitialize()
RAW Paste Data
Top