Page 1 of 1 1
Topic Options
#367 - 1999-08-31 03:33 PM Connecting to a network printer
Anonymous
Unregistered


I am trying to connect to a network printer from a Win95 workstation via logon script and receive the following error “120-This function is only valid in Win32 mode” returned by @SERROR. I don’t seem to have a problem copying or deleting files from the Win95 workstation or pushing an icon to the desktop with the logon script. Any suggestions would be appreciated.
Top
#368 - 1999-09-16 08:18 AM Re: Connecting to a network printer
Anonymous
Unregistered


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

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1343 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.047 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org