Dale Strickland-Clark <[EMAIL PROTECTED]> wrote:
>
>I presume this .ps file is a preformed postscript file that should be sent
>to a postscript printer without further modification?
>
>In this case, I think you should use copy instead of print. Something like
>this:
>
>win32api.ShellExecute(0, "copy", "file.ps prn", None, ".", 0)

No, that's not how ShellExecute works.  ShellExecute looks up the handler
for the file in the third parameter, based on its extension, and then looks
for the handler for the appropriate "verb" in the second parameter.  It's
just registry magic.  It's not a command line thing.

Most file types have an "open" verb and a "print" verb; some also have
"edit".
-- 
- Tim Roberts, [EMAIL PROTECTED]
  Providenza & Boekelheide, Inc.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to