Printer - Remove

Declaration

<AMPRINTER ACTIVITY="delete" DELETESPECIFICPRINTER="text" />

Description: Removes a printer from the list of available printers.

Practical Usage

Can be used to delete unused printers. Note that you can't remove a printer if you have items in the print queue.

General Parameters

Property

Type

Required

Default

Markup

Description

Delete specific printer

Text

Yes

(Empty)

DELETESPECIFICPRINTER="HP LaserJet 6000"

The name of the printer device to delete. The printer must exist on the target system at runtime. Also, you can't remove a printer if you have items in the print queue.

Description tab - A custom description can be provided on the Description tab to convey additional information or share special notes about a task step.

Error Causes tab - Specify how this step should behave upon the occurrence of an error. (Refer to Task Builder > Error Causes Tab for details.)

On Error tab - Specify what AWE should do if this step encounters an error as defined on the Error Causes tab. (Refer to Task Builder > On Error Tab for details.)

Example

The sample AML code below can be copied and pasted directly into the Steps panel of the Task Builder.

Description: Delete specific printer "\\myfolder\Brother MFC-9970CDW."

<AMPRINTER ACTIVITY="delete" DELETESPECIFICPRINTER="\\myfolder\Brother MFC-9970CDW" />