« Return to Thread: Can I execute external programs from PythonCe?

Re: Can I execute external programs from PythonCe?

by Adam Walley :: Rate this Message:

Reply to Author | View in Thread

Hello,
 
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 option.
 
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.
 
Adam

2008/9/6 Alexandre Delattre <alexandre.delattre@...>
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@...
http://mail.python.org/mailman/listinfo/pythonce



_______________________________________________
PythonCE mailing list
PythonCE@...
http://mail.python.org/mailman/listinfo/pythonce

 « Return to Thread: Can I execute external programs from PythonCe?