On Sun, Mar 9, 2008 at 5:22 PM, Gif <[EMAIL PROTECTED]> wrote: > i'm trying to execute a file without replacing the current process, > but after searching the help file, documentations and the web, i can't > a way of doing that. > > os.exec*() will close the current program. > > ps: by executing i mean like typing "mspaint" in run dialog.. it's not > a python file
On *nix, you can use os.fork(). According to http://effbot.org/librarybook/os.htm , you can use os.spawn to accomplish a similar effect on Windows, although I haven't used it. Also, you might check the subprocess module -- http://docs.python.org/lib/module-subprocess.html . -dan -- http://mail.python.org/mailman/listinfo/python-list