AddWindowsPrinterConnection Method

Discussion in 'Windows Networking' started by Colin MacGillivray, Sep 15, 2003.

  1. 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
     
    Colin MacGillivray, Sep 15, 2003
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.