DELPRINTERCONNECTION

Action

Deletes a connection to a printer that was established by using ADDPRINTERCONNECTION.

 

Syntax

DELPRINTERCONNECTION ("printer name")

 

Parameters

Printer name

A string that specifies the name of the printer connection to delete.

 

Remarks

This function is only available on Windows NT or higher.

The DELPRINTERCONNECTION function does not delete any printer driver files that were copied from the server on which the printer resides when the printer connection was established.

Returns

 

0

Printer connection deleted

Error code

Function failed

 

Example

If DelPrinterConnection ("hplaser4") = 0

   ? "Deleted printer connection...."

Endif