Networking Forums

Networking Forums > Computer Networking > Windows Networking > AddWindowsPrinterConnection Method

Reply
Thread Tools Display Modes

AddWindowsPrinterConnection Method

 
 
Colin MacGillivray
Guest
Posts: n/a

 
      09-15-2003, 02:54 PM
I am using the this VB script to add printers to a Win98
machine :

Set WshNetwork = WScript.CreateObject("WScript.Network")
PrinterPath = "\\printserv\DefaultPrinter"
PrinterDriver = "Lexmark Optra S 1650"
WshNetwork.AddWindowsPrinterConnection PrinterPath,
PrinterDriver


This script works fine for Win2k/Nt/Xp but will NOT run
with Win98. I keep getting an error with Line 4 Char 1
(Invalid procedure call or argument). I am using WSH 5.6

Any help appreciated

TIA
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VoIP Connection Method Geoff Lane Home Networking 7 07-17-2007 08:11 PM
AOL dialup - what authorization method? YapannCo@aol.com Linux Networking 3 03-13-2006 06:11 PM
Best method of active usb extensions noprofiles Wireless Internet 1 01-28-2006 04:53 AM
Boot Method? Uday Mullangi Linux Networking 0 12-30-2004 04:14 AM
routing - method Geoff Lane Home Networking 6 09-10-2003 10:34 PM



1 2 3 4 5 6 7 8 9 10 11