closing an instance of acrobat reader from command line

前端 未结 3 1942
孤街浪徒
孤街浪徒 2021-01-05 10:26

I am using the following cmd to print the pdf:

acroRD32.exe /t \"file1.pdf\" \"printerName\"

Everything works fine but one window pops up.

3条回答
  •  攒了一身酷
    2021-01-05 10:56

    I successfully tested forking a delayed kill command before starting the print job.

    start cmd /c "timeout 15 & taskkill /f /im acrord32.exe"
    acroRD32.exe /t "file1.pdf" "printerName"
    

提交回复
热议问题