printing, kill OK window

In a script I call up Acrobat's acroread as
acroread /p fileName
to print .pdf files.  The automation stopped when
the printer dialog opens and asks if it's OK to print.
How do I kill this?
LVL 1
hank1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

joesixpackCommented:
What platform??????

Please!!!
0
hank1Author Commented:
whoops - win95
Many responses about OLE but that is not an option here.
The following was collected from comp.text.pdf - but the
dialog still pops up.


--------------------------- comp.text.pdf BEGIN
Subject:
              HOW TO: print pdf files directly from the dos prompt
         Date:
              12 Mar 1997 23:38:33 GMT
        From:
              "Sal Gurnani" <skg1@cornell.edu>
Organization:
              University of California, Berkeley
  Newsgroups:
              comp.text.pdf
   References:
              1 , 2 , 3 , 4 , 5

Note: This only works for 32 bit versions of Acrobat reader on Win95/NT

To print a specific pdf file directly to a given printer, issue the
following command from the dos prompt:

Acrord32.exe /t "PDFFILE" "PRINTER" ""

Replace PDFFILE with the full path to the pdf file.  Replace PRINTER
with
the correct port for the printer.  A port can be something like LPT1: if

the printer is directly attached to your computer or of the form
\\MYNETWORK\PRINTER1 if the printer is on a network.  I belive the third

argument, specified above as double double quotes can be used to specify

print setup instructions like number of copies,etc. but I don't know
what
the correct syntax is.  If someone knows, please post the answer or send
me
email.  Be sure to put in the double quotes around each argument.

To print a specific pdf file to a file using the printer driver for a
given
printer, issue the following command from the dos prompt:

Acrord32.exe /t "PDFFILE" "PRINTER" "" "OUTPUTFILE"

PDFFILE, PRINTER, and "" are the same as above.  Replace OUTPUTFILE with

the full path to the destination file.  Be sure to put in the double
quotes
around each argument.

Calling the acrobat reader in this fashion will actually launch the
application, cause it to load the appropriate pdf file, and execute the
print operation without any user intervention so it could be implemented
as
a cgi script on a web server.

The above information was obtained via trial and error so I can't refer
you
to a sdk or manual.
--------------------------- comp.text.pdf END

Also tried that talented bunch at perl-win32-users@activeware.com
but no body even touched it (that is in itself remarkable).
A posting in in win95 general suggested a mouse redirect -
something like  acroread /p fileName < keyClickInHere.

I have this feeling the registry is involved and that dialog
box can be switched off.


0
sherwoodCommented:
Ghostscript is available for win platforms.  Ghostscript
at the 4.01 level from Aladin understands acrobat files,
and has enough options to use for what you want.  One of the
conversions possible is acrobad to postscript.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
hank1Author Commented:
Per Acrobat - command line printing from reader not
supported.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Perl

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.