The syntax of this command is:
NET PRINT
[job# [/HOLD | /RELEASE | /FIRST | /LAST | /DELETE]]
sharename [/HOLD | /RELEASE | /DELETE | /PURGE]
NET PRINT sharename also has these options:
[/PRIORITY:#] [/SEPARATOR:pathname]
[/ROUTE:devicename[,...]] [/PROCESSOR:pmname]
[/AFTER:time] [/REMARK:"text"]
[/UNTIL:time] [/OPTIONS]
[/PARMS:"[COPIES=#] [EJECT=val] [BANNER=val] [TYPES=type1[,...]]"]
Values for EJECT are YES, NO, or AUTO
Values for BANNER are YES or NO
This command displays or controls print jobs and printer
queues, or sets or modifies options for a printer queue.
The options of this command are:
sharename - is the name of the printer queue. For a client,
when including the sharename with the servername, use
a backslash ( \ ) to separate the names.
job - is the identification number assigned to a print job
in a printer queue. A server with one or more printer
queues assigns each print job a unique number. If a
job number is being used in one printer queue shared by
a server, that number is not assigned to any other job,
not even to jobs in other printer queues on that
server.
servername - is the name of the UNIX system server sharing
the printer queue(s).
devicename - is the name of the device at the client
computer assigned to the printer queue. Devicenames
LPT1: through LPT3: are available in DOS.
/PRIORITY:# - sets the priority for the printer queue
(1 is the highest and 9 the lowest). Each print job is
assigned a number based on the printer queue priority.
If a printer has more than one printer queue routed to
it, it prints jobs from the printer queue with highest
priority first.
/ROUTE:printername1[,printername2...] - routes the printer
queue to one or more printernames on the server.
Separate multiple printernames with commas ( , ). The
printer names are LP subsystem printernames.
In the UNIX operating system, the semicolon (;) is a
special character that must be preceded by a backslash.
/AFTER:time - prints jobs from the printer queue after the
specified time. Use 24-hour time with the format
specified time. Use 24-hour time with the format
hh:mm; or use 12-hour time with the format hh:mmam or
hh:mmpm.
/UNTIL:time - prints jobs from the printer queue until the
specified time. Use 24-hour time with the format
hh:mm; or use 12-hour time with the format hh:mmam or
hh:mmpm.
/SEPARATOR:pathname - instructs the printer queue to use the
separator page defined in the pathname file. You can
specify the full path to the file or only the filename.
If only the filename is specified, the path is presumed
to be lanmanpath (lanman/spool). The default is no
custom separator page; the UNIX system LP subsystem
banner page is printed instead.
/PROCESSOR:pathname - instructs the printer to use the print
processing program stored in pathname. You can specify
the full path to the file or only the filename. If
only the filename is specified, the path is presumed to
be lanman/custom (which is the only acceptable path).
/PARMS:"keyword=value[:...]" - specifies a set of options of
the queue in the format keyword=value. Valid keywords
include TYPES, EJECT, COPIES, and BANNER. The keyword:
TYPES Specifies the type of print data accepted by
the queue, and is automatically set to match
the printers in the queue.
EJECT Specifies whether or not a formfeed command is
issued at the between copies of a job; the
choices are YES, NO, or AUTO; the default is
AUTO (YES).
COPIES Specifies the number of copies to print; the
default is 1.
BANNER Specifies whether to print a banner (separator)
page before each job. The choices are YES and
NO; the default is YES.
/REMARK:"text" - adds a descriptive comment about the
printer queue. Enclose the text in quotation marks.
/OPTIONS - displays the options assigned to the printer
queue.
/HOLD - when used with job, holds a print job waiting in the
printer queue. The print job stays in the printer
queue, and other print jobs bypass it until it is
released. When used with sharename, all new jobs and
all jobs presently in the queue are held except the one
currently printing. Users can hold their own print
jobs.
/RELEASE - releases a print job or printer queue that has
been held. Users can release their own print jobs.
/DELETE - when used with job, removes the print job from a
printer queue. When used with sharename, removes a
printer queue. At a client, users can delete their own
print jobs.
/PURGE - removes all print jobs from the printer queue
except the print job that is currently printing.
/FIRST - moves a print job to the first position in the
printer queue.
/LAST - moves a print job to the last position in the
printer queue, then renumbers the job using the next
available job number (therefore, the print job number
will change). Users have permission to move their
own print jobs (not someone else's) to the last place
in the queue.