Close Acrobat Reader by Progress programming

ahchel

New Member
Hi all,
I use the codes to open 'abc.pdf' file:

os-command slient ("C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe" /p "abc.pdf").
message "Done!!".


The problem is that the process is hold until I close the Acrobat Reader.
How I can close the Acrobat Reader through coding so that the process can finish? :confused::confused::confused:

Thank you very much!!
 

Stefan De Leyn

New Member
Drop the silent-option and put no-wait no-console in stead.

The silent-option causes Progress to wait for the Windows-session created bu the os-command to stop (in your case closing Acrobat). The no-wait option tells Progress to immediately go on to the next statement. The no-concole option tells Progress to not create a DOS-Window to run in.
 

ahchel

New Member
Thanks a lot!!
I finally use another method -- "WScript.Shell".
The result is very good.
The problem is solved.
 
Top