[PythonCE] PythonCE Digest, Vol 27, Issue 7

Edward Fewell EdwardFewell at hotmail.com
Thu Oct 27 15:48:41 CEST 2005

<< 1)Is there a way to do this in Python ?. >>

If it were desktop Python, you could approach it two ways.  You could use
the system method of the os module to launch your applications.  Or you
could use access to the Win32 API CreateProcess() from the Win32 wrappers.

Neither is available to PythonCE 2.34 that I have here.  I have seen where a
CreateProcess() module exists, but it was reported to only work with
PythonCE 2.2.  No, I don't know for sure where you could get either of

<< 2) Where would I put such a start script and how do I  make sure t is
executed on start up ?. >>

Not sure what you mean here by "start up".  If you mean on a warm reset, it
would go into the \Windows\StartUp directory.  If you mean every time your
application is started, then you arrange it so they can only see the script
to launch the application and hide the pieces you don't want them to launch

I faced something similar where I needed to do some file clean up before
launching an application or the application would not run properly.  I
couldn't find a way to pull that off with PythonCE 2.34 and ended up doing
it in eVC++.  PythonCE really needs os.system() implemented or at least
access to CreateProcess() to be a Pocket PC scripting language.

*hoping now that someone chimes in to show where I'm wrong and just missed

Edward Fewell

More information about the PythonCE mailing list