469,588 Members | 2,688 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,588 developers. It's quick & easy.

Microsoft Vista and os.exec

I have wxPython programs that work fine in Win2000/XP using os.exec().

They do not work in MS Vista. Has anyone else had any luck with
exec()?

I keep getting an 'invalid option' error.

It turn out it was really a security issue and I had to move to a
"win32process.CreateProcess" solution to fix this under Vista.

There is a good example of using CreateProcess in the "Python
programming on Win32" book.

Aug 21 '07 #1
1 1476
franko353 wrote:
I have wxPython programs that work fine in Win2000/XP using os.exec().

They do not work in MS Vista. Has anyone else had any luck with
exec()?

I keep getting an 'invalid option' error.

It turn out it was really a security issue and I had to move to a
"win32process.CreateProcess" solution to fix this under Vista.

There is a good example of using CreateProcess in the "Python
programming on Win32" book.
I've also had issues with Vista... mine have to do with the execution of
scripts. I don't have a test vista box in front of me right now, all of
my vmware vistas have deactivated me into 'reduced functionality mode'.
Basically, on XP, when I execute a script it runs in the directory
that it executed in, but in Vista, it executes elsewhere... I don't
remember where exactly right off the top of my head. Other than that
issue it seems to work fine even with wxPython.
Aug 21 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by =?Utf-8?B?Um9iS2lubmV5MQ==?= | last post: by
3 posts views Thread by slogging_away | last post: by
1 post views Thread by boriq | last post: by
1 post views Thread by =?Utf-8?B?a2FybHJlbnR6aGVpbWVy?= | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.