(view source code of login_connect_network_printer.vbs as plain text)
Set wshNetwork = CreateObject( "WScript.Network" )
On Error Resume Next
wshnetwork.AddWindowsPrinterConnection "\\CompanyServer\LaserJet Marketing"
If Err Then
WScript.Echo "Error " & Err.Number & " while trying to connect to LaserJet Marketing"
WScript.Echo "(" & Err.Description & ")"
End If
On Error Goto 0
Set wshNetwork = Nothing
page last modified: 2024-04-16; loaded in 0.0065 seconds