[python-win32] A little help for a n00b, please

Tim Golden mail at timgolden.me.uk
Sun May 6 19:20:41 CEST 2012


On 06/05/2012 18:07, Alan Jump wrote:
> Much obliged to both you and Vernon. I'm going to be adding quite a few
> code snippets to these emails, just to let the various search engines
> work their magic in case anyone besides me is running into the same problem.
>
> I tried a couple of the extended commands on the web page, and still got
> the same exception message.

At the risk of asking you to do the obvious, what happens
if you do this:

<code>
import win32api

open ("test.txt", "w").write ("TESTING")
win32api.ShellExecute (0, "print", "test.txt", None, ".", 0)

</code>

In other words, is there a problem sending *anything*
to print via a Shell Execute? Or is there something
specific to your app?

TJG


More information about the python-win32 mailing list