Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Commandline printing

Posted on 2007-11-23
5
Medium Priority
?
544 Views
Last Modified: 2010-04-21
I want to create PDF documents using the "PDF Printer" as installed by AcrobatPro7 via the windows commandline.

Now an XP dos box allows you to use the print command but when you try:

print /D:"Adobe PDF" drive:\path\to\filename

Where "Adobe PDF" is the actual printer name (also by default).

This does not work as the print command does not understand which printer to use.

What command should I give to tell the print command to use the Adobe PDF printer?
0
Comment
Question by:paulqna
  • 3
  • 2
5 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 20340560
You could try

cscript c:\windows\system32\prnmngr.vbs -t "Adobe PDF"
print drive:\path\to\filename
0
 
LVL 5

Author Comment

by:paulqna
ID: 20341122
Executing that cscript command gives me the help text for the prnmngr.vbs, so I think there is a syntax problem with that command?
0
 
LVL 86

Accepted Solution

by:
jkr earned 1000 total points
ID: 20341205
Ah, that should be

cscript c:\windows\system32\prnmngr.vbs -t -p "Adobe PDF"
print drive:\path\to\filename

It actually sets the standard printer.
0
 
LVL 5

Author Comment

by:paulqna
ID: 20341239
The first command works but then the print command fails with this message:

Unable to initialize device PRN
0
 
LVL 5

Author Closing Comment

by:paulqna
ID: 31410707
Problem never solved.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question