Karen,
As a big fan of Adobe Acrobat, I've been following this thread and I just tried a little experiment from a command prompt window (no R:Base and no LAUNCH".
Running under Windows 2000 and using the full Adobe Acrobat package (not the Reader) in a command window, I constructed the following command line (where << and >> are my additions to delineate the command line in this email) and the PDF file was sent directly to my default printer:
<<C:\>"C:\Program Files\Adobe\Acrobat 6.0\Acrobat\Acrobat.exe" /p /h C:\LakeMonticello\FridayFlyer_2004-11-19.pdf>>
Then I issued the following command and received an error message (again with << and >> delineators):
<<C:\>"C:\Program Files\Adobe\Acrobat 6.0\Acrobat\Acrobat.exe" | /p /h C:\LakeMonticello\FridayFlyer_2004-11-19.pdf>>
<<'/p' is not recognized as an internal or external command, operable program or batch file.>>
Which begs the question regarding your original problem command line: what's the purpose of the vertical bar character?
Alan Steward
At 11:20 11/19/2004 -0500, you wrote:
Well, I've just given up. I tried Alastair's formation of the Launch command, but his had no spaces in the directory hierarchy and mine does.
What I did was copy AcroRd32.exe to the c:\ directory and tried the launch to see if the spaces in the directory names made a difference, but it still doesn't print out. In its simplest form, it looks like:
LAUNCH 'c:\acrord32.exe|/p /h c:\504209.pdf'
No error message, but still no printing.
Some people say to use Acrobat.exe instead of Acrord32.exe, so I copied that to c:\ and also didn't work.
I tried Mike's .vbs script, changed it to use my directory of: "C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe"
Called it with: launch 'printdoc.vbs|c:\504209-1.pdf'
Same thing, no error but no printing. I'm thinking there's something I'm missing to be able to print automatically from acrobat, period!
I'm going to tell the client this can't be done in 6.5++
Karen

