Skip to content

dos_spool

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

Spools, or prints, a disk file to a Windows printer. The spool file must be in a "raw" printer format.

Syntax

(dos_spool filename printername)

Parameters

filename

The source filename. filename must contain either text or printer information.

printername

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

Returns

A qualified path to the spooled file if successful.

nil on error.

Example

Command: (dos_spool "readme.txt" (dos_getprn))
"C:\\temp\\readme.txt"

Clone this wiki locally