win32 screen captures

Tim Roberts timr at
Mon Aug 13 02:44:36 CEST 2001

dgallion1 at (Darrell) wrote:

>Robin Becker wrote:
>> I have also managed to get a PDF App to pop up using COM directly, but
>> can't seem to get an open document into it, whine
>Untested code cut from another app:
>import os, re, thread, sys
>assoc=os.popen("assoc .pdf").read()
>ftype=os.popen("ftype %s"%assocA).read()
>ftypeA=re.findall('=(".*?")', ftype)[0]

Unfortunately, "assoc" and "ftype" are on Windows NT only.  They aren't
available on Win98 or, of course, Unix.

You can achieve the same end on all Windows systems with
- Tim Roberts, timr at
  Providenza & Boekelheide, Inc.

More information about the Python-list mailing list