[python-win32] calling python as process from vb.net

niki niki at vintech.bg
Thu Jul 30 10:08:44 CEST 2009


Pam Westphal wrote:
> **** starting the process ***********
> dim p as new process
> p.StartInfo.FileName = "pythonw.exe"
> p.StartInfo.WorkingDirectory = "C:\Python25\work\"
> p.StartInfo.Arguments = "smooth_data_kiosk2.py " & datafields.Trim
> p.StartInfo.RedirectStandardOutput = True
> p.StartInfo.UseShellExecute = False
> p.StartInfo.CreateNoWindow = True
> p.Start()

You can try UseShellExecute = True or start cmd.exe /c python.exe ...

Niki


More information about the python-win32 mailing list