Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Commandline printing

Posted on 2007-11-23
5
Medium Priority
?
543 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

721 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