I am using the following cmd to print the pdf:
acroRD32.exe /t "file1.pdf" "printerName"
Everything works fine but one window pops up. Can anybody help me to disable it. I tried with various options included in this question but cannot succeed.
Any help is appreciated.
You cannot close the last open Acrobat window through the command line. From ancient history of programming scripts for Acrobat, I believe that there is no way to do this in an Acrobat script, either.
But you can close Acrobat from the command line, though it is a bit convoluted. For a pure MSDOS method for most Windows systems, create two files: called.bat and caller.bat.
caller.bat:
called.bat
Note that you can write scripts in many programming languages that accomplish the same task more elegantly.