Login | |
|
 |
RE: Help with printer Script please - 6/26/2008 12:18:06 AM
|
|
 |
|
| |
dm_4ever
Posts: 2666
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
|
If you think these two lines are building on each other...they're not....you'll have to combine them into one statement Set colInstalledPrinters = objWMIService.ExecQuery _ ("Select * from Win32_Printer Where Default = False") Set colInstalledPrinters = objWMIService.ExecQuery ("Select * From Win32_Printer Where Network = True") I would stick to using Set WshNetwork = CreateObject("WScript.Network") to add/remove the network printer and WMI to determine which printer is the default.
_____________________________
dm_4ever My philosophy: K.I.S.S - Keep It Simple Stupid Read Me: http://www.visualbasicscript.com/m_24727/tm.htm Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
| |
|
|
 |
|
 |
|
|