Support

Answers to common questions, troubleshooting and how to reach us.

Frequently asked questions

Writing commands

How do I write a printer name with spaces or non-English characters?

Put the whole name in straight double quotes, spelled exactly as showprnlist shows it, spaces included. Non-English names work as they are. For shared printers use the full name such as "\\server\Finance HP".

Command Prompt
cmd4printer -src "D:\contract.pdf" -prn "Finance HP M404"
When do values need quotes?

Quote a value when it contains spaces, semicolons or other special characters: name:"value", e.g. tray:"Tray 2", pssp:"1=Tray 1;2-last=Tray 2", text:"Internal use". Use straight quotes " — curly quotes pasted from Word will not be recognised.

In .bat files write % inside a value as %%, and break long commands with ^ at the end of a line. PowerShell passes the arguments through without extra escaping.

What happens if I mistype a parameter?

Unknown parameters and invalid values produce a warning and are ignored, the run continues, and the warning suggests the closest name (“did you mean duplex?”). A wrong switch or broken syntax ends with exit code 2 and nothing is printed.

How can I test without wasting paper?

Add -options dryrun:yes for a dry run, or print to Microsoft Print to PDF and write the result to a file with outputfile.

Command Prompt
cmd4printer -src "D:\Inbox\*.*" -prn "Microsoft Print to PDF" -options outputfile:"D:\Test\{SrcFileName}.pdf"

Formats and required software

Can I print Word or Excel files without Office?

No. Word, Excel, PowerPoint, Visio and Publisher files are converted by the Microsoft Office installed on the PC. Without it these files fail (the result says why) while the other files still print. cmd4printer -about shows which engines are available. Workaround: save the files as PDF on another PC first.

What do I need for web pages, Markdown and email?

Microsoft Edge or Google Chrome. Cmd4Printer uses it in the background to render the content to PDF — no browser window appears. Edge ships with Windows 10 and 11. Use -engine file_format:html name:chrome to prefer Chrome, and -fls html width:… height:… units:mm to set the page size for web pages.

Is DWG supported?

Not yet — DWG and DWF are not supported. Save the drawing as DXF or PDF in your CAD application; both print directly (DXF as vectors).

How do I print password-protected PDFs?

Use -options srcpwd:password (repeat it to try several), or list the passwords one per line in a file and use srcpwd_file:"…".

Systems and deployment

Anything special about Windows 7?

You need Windows 7 SP1 with .NET Framework 4.8 installed first. Web pages, Markdown, EPUB and email need Chrome 109 or Edge 109, the last versions that run on Windows 7. The same applies to Windows Server 2008 R2 SP1.

Office files fail in a scheduled task?

For tasks set to “Run whether user is logged on or not”: log on once with that account and open Word/Excel to finish their first-run setup, and make sure C:\Windows\System32\config\systemprofile\Desktop exists (and the same folder under SysWOW64 on 64-bit Windows).

The command succeeded but nothing came out of the printer?

“Submitted” means the Windows print queue accepted the job. If the printer is off, offline or out of paper the job waits in the queue. Check the status:

Command Prompt
cmd4printer -prn "Office A" -options getprinterstatus

If it reports that the print spooler is not running, run net start spooler as an administrator.

How do I install on many PCs?

Use the silent install switches, e.g. /VERYSILENT /SUPPRESSMSGBOXES /ALLUSERS — see the download page. Export your defaults from the settings window on one PC and copy them to %ProgramData%\Cmd4Printer\Cmd4Printer.ini on the others.

Trial and licensing

What are the limits of the trial?

No feature or time limits. The only difference is an extra trial report page at the end of each print run. Activating a license removes it — no reinstall needed.

How do I activate? What about PCs without internet?

Run cmd4printer -register key under the Windows account that prints. On PCs without internet access use offline activation:

1. Create a request code
cmd4printer -register request

Send us the request code with your license key, then run this with the response code you receive:

2. Enter the response code
cmd4printer -register <key> <response>

More on the pricing page.

How do I move a license to another PC?

Run cmd4printer -register remove on the old PC, then activate on the new one.

Exit codes

What does each exit code mean?
Exit codeMeaningWhat to do
0All files were submitted to the print queue—
1Internal errorExport logs with -options export_path and contact support
2Usage error: wrong switch, value or syntaxRead the allowed values and the example in the error message
3Environment problem: printer, tray, paper or files not found, or the print spooler is stoppedCheck names with showprnlist / showtraylist
4Some files failed; the others were submittedCheck unprinted_files_log and reprint only those files
5Submit result unknown; the job may already be queuedCheck the print queue before reprinting
6Cancelled (Ctrl+C)—

See the tutorial for using them in batch files.