[PythonCE] Can I execute external programs from PythonCe?

Adam Walley adam.walley at gmail.com
Sat Sep 6 18:22:52 CEST 2008


Just thought I'd put my two cents in...

Igor, have you tried the os.startfile('\mypath\pyprog.exe', 'myAction')
command? Where action is normally 'open', but could be 'print' or some other

It does not give you a reply from the external program, but launches it as
if you had clicked on it from the File Explorer, and it immediately returns
to python. The only problem is that PythonCE might lose focus.

Alex, thanks for the osce file.


2008/9/6 Alexandre Delattre <alexandre.delattre at enst-bretagne.fr>

> Hi,
> Recently I've adapted the module osce.py to use ctypes instead of win32*
> modules.
> <http://mail.python.org/pipermail/pythonce/2005-January/000948.html>
> Currently there is no os.system function but a systema function that can be
> used this way:
> systema('\\full\\path\\to\\program.exe', ['arg1', 'arg2', ...])
> Cheers,
> Alexandre
> _______________________________________________
> PythonCE mailing list
> PythonCE at python.org
> http://mail.python.org/mailman/listinfo/pythonce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonce/attachments/20080906/b604b607/attachment.htm>

More information about the PythonCE mailing list