Click here to return to the KiXtart HelpDesk main page...

KiXtart Command Reference

ADDPRINTERCONNECTION

action

Adds a connection to the specified printer for the current user.

syntax

ADDPRINTERCONNECTION ("printer name")

parameters

Printer name

The name of the printer to which to connect.

remarks

This function is available only on Windows NT, and can be used only to connect to printers on a server running under Windows NT.

When Windows NT connects to the printer, it may copy printer driver files to the local computer. If the user does not have permission to copy files to the appropriate location, ADDPRINTERCONNECTION fails, and @ERROR returns ERROR_ACCESS_DENIED.

returns

0

Printer connection established

Error code

Function failed

example

If ADDPRINTERCONNECTION ("\\vleerbeer\hp laserjet 4") = 0
   ? "Added printer connection...."
Endif