I'm not sure how/if you can do what you want with os.system(), but this
is what I've used to pass arguments directly to applications on
Windows:
> # spawn text editor on file
> import os
> applpath = r'C:\Windows\system32\notepad.exe'
> filepath = r'D:\My Documents\somefile.txt'
> os.spawnv(
> os.P_WAIT,
> applpath,
> [ # argument list
> applpath,
> filepath
> ]
> )
A downside is that it requires you to know the full path to the
application, 'acroRd32.exe' in your case. On the other hand, I think
you could pass just about any argument values (as strings) that you
wished in the list passed as the third argument.
HTH,
-Martin
os.system('start acroRd32.exe'+' /A'+' "page=15"'+'
"C:\\Gregtemp\\estelletest\\NexGlosser_User_Guide_W60G00_en.pdf"')
I'm going to give your method a try to see if it launches any quicker.
Thanks again.
Greg Miller
If you want fast document startup you could consider using the win32all
extensions to create an AcroReader application process in advance of
opening any documents.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
Greg