472,142 Members | 1,305 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,142 software developers and data experts.

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 1543
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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.