GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing ss64.com — AddPrinterConnection - VBScript function .AddPrinterConnectionAdd a printer connection. Syntax
objNetwork.AddPrinterConnection(strLocalName,
strRemoteName[,bUpdateProfile][,strUser][,strPassword]
Key
objNetwork : A WScript.network object
strLocalName : Local printer Name (String value)
strRemoteName : Remote printer Name (String value)
bUpdateProfile : Indicate whether the printer mapping
is stored in the current user’s profile.
Boolean value
If TRUE the mapping is stored in the user profile.
default = false.
strUser : The user name. (if using a different profile)
Optional.
strPassword : The user password. (if using a different profile)
Optional.
The AddPrinterConnection method adds a network printer to an MS-DOS printer port, such as LPT1. Examples' Connect a network printer to LPT1.
Set objNetwork = WScript.CreateObject("WScript.Network")
objNetwork.AddPrinterConnection "LPT1", "\\Server\Print1"
“Pay attention. It’s all about paying attention. attention is vitality. Related VBScript commands Add Network printer - .AddWindowsPrinterConnection Copyright © 1999-2026 SS64.com
Some rights reserved |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |