Scripts Thread, Printer vbscript ? in Coding and Web Development; Kingswood had a vbscript that is simple yet effective with regards to adding a printer , setting it to default ...
-
13th September 2005, 07:00 PM #1 Printer vbscript ?
Kingswood had a vbscript that is simple yet effective with regards to adding a printer , setting it to default and it had a sleep time of aprox 1000 aka 1 second to give it a chance to add the connection or something like that, Any chance you or someone could post it 
Thanks and much appreicated !
-
-
IDG Tech News
-
14th September 2005, 08:21 AM #2 Re: Printer vbscript ?
this is the vbscript I use; hope it helps!!!
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
sPrintPath ="\\192.168.2.250\Lexmark"
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
WScript.Quit
Obviously I have the printer shared on the print server as "Lexmark"(don't ask!!!) and the print servers ip address. Run this at logon, and the printer will be the default
-
SHARE:
Similar Threads
-
Replies: 7
Last Post: 23rd September 2011, 03:21 PM
-
By sqdge in forum Scripts
Replies: 20
Last Post: 13th September 2007, 03:34 PM
-
By StewartKnight in forum Coding
Replies: 4
Last Post: 3rd May 2007, 05:41 PM
-
By StewartKnight in forum Coding
Replies: 5
Last Post: 1st May 2007, 11:04 AM
-
By mac_shinobi in forum Scripts
Replies: 1
Last Post: 20th February 2007, 11:29 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules