VBS script, making object default

R

Richard A

Using the following script....
' VBScript.' Guy Thomas February 2004.
' http://computerperformance.co.uk
' Script for NT 4.0, Windows 2000 and XP
' ******************************
Set WshNetwork = WScript.CreateObject("WScript.Network")
PrinterPath = "\\printerserver\DefaultPrinter"
WshNetwork.AddWindowsPrinterConnection PrinterPath
WScript.quit

How do I make the printer I put in the actual "default"
printer if there are more printers in the users profile.
 
W

Will Denny

Hi

You may like to direct your question to a Scripting News Group:

news://msnews.microsoft.com/microsoft.public.scripting.vbscript

--

Will Denny
MS-MVP Windows - Shell/User
Please reply to the News Groups


| Using the following script....
| ' VBScript.' Guy Thomas February 2004.
| ' http://computerperformance.co.uk
| ' Script for NT 4.0, Windows 2000 and XP
| ' ******************************
| Set WshNetwork = WScript.CreateObject("WScript.Network")
| PrinterPath = "\\printerserver\DefaultPrinter"
| WshNetwork.AddWindowsPrinterConnection PrinterPath
| WScript.quit
|
| How do I make the printer I put in the actual "default"
| printer if there are more printers in the users profile.
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Top