command prompt loop?

G

Guest

I need to loop the following. I have, say, 3 file in the folder that I need
printed. The code does work, however, it will only bring up only one file and
I need to bring up all the files in the folder and pring them. Or could you
tell me were I can find some help on DOS or command prompt. Thanks

C:\program files\adobe\reader 8.0\reader>acrord32.exe /t/n c:\print
pdfs\*.pdf \\csg-amdc2\hplj9050mfp_9 adobeps tektonix phaser 840
172.21.211.116
 
P

Pegasus \(MVP\)

pgarcia said:
I need to loop the following. I have, say, 3 file in the folder that I need
printed. The code does work, however, it will only bring up only one file
and
I need to bring up all the files in the folder and pring them. Or could
you
tell me were I can find some help on DOS or command prompt. Thanks

C:\program files\adobe\reader 8.0\reader>acrord32.exe /t/n c:\print
pdfs\*.pdf \\csg-amdc2\hplj9050mfp_9 adobeps tektonix phaser 840
172.21.211.116

Try this:

for %a in (c:\print\pdfs\*.pdf) do acrord32.exe /t/n "%a"
\\csg-amdc2\hplj9050mfp_9 adobeps tektonix phaser 840 172.21.211.116

Type

for /?

at the Command Prompt to see how it works.
 
G

Guest

Oh, so close. It brought up three different Adobe reads but could not display
the pdf. I'm not sure if that's a short coming of Adobe or could something be
missing?
Thanks, by the way.
 
P

Pegasus \(MVP\)

If the command

acrord32.exe /t/n "SomeFile.pdf" \\csg-amdc2\hplj9050mfp_9 adobeps tektonix
phaser 840 172.21.211.116

works then my initial suggestion will work too. I think
you need to put a little more work into the command
itself.
 
P

Pegasus \(MVP\)

You proposed this command:

acrord32.exe /t/n "SomeFile.pdf" \\csg-amdc2\hplj9050mfp_9 adobeps tektonix
phaser 840 172.21.211.116

I have a strong suspicion that it is not quite correct. Check
the Acrobat FAQs for the correct syntax!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top