Skip to content

dos_setprn

Dale Fugier edited this page Jul 1, 2026 · 1 revision

Sets the current, or default, Windows printer. The printer name must be a name returned by dos_printers.

Syntax

(dos_setprn printername)

Parameters

printername

The name of an existing printer, as returned by dos_printers.

Returns

A string identifying the current Windows printer if successful.

nil on error.

Example

Command: (dos_setprn (cadr (dos_printers)))
"hp LaserJet 1300 PCL 6"

Clone this wiki locally