Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default Printing using VB Script

Status
Not open for further replies.

salc76

Technical User
Feb 21, 2007
21
CA
Can someone show me how to create a VB script that always defaults to a specific printer on a network during logon?

I tried using the following script howerver, the system notifies me that the script cannot find the printer during the initial logon.

Any ideas
------------
Option Explicit
Dim objPrinter
Set objPrinter = CreateObject("WScript.Network")
objPrinter.SetDefaultPrinter "\\afapts\HPLaserJYORK2"
' End of example VBScript
-------------

Sal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top