Thursday, September 27, 2007

VBScript to enumerate available printers on your desktop

'Script Start

Set objNetwork = WScript.CreateObject("WScript.Network")
Set colPrinters = objNetwork.EnumPrinterConnections
For i = 0 to colPrinters.Count -1 Step 2
Wscript.Echo colPrinters.Item(i) & vbTab & colPrinters.Item (i + 1)

'Script End

How to execute a VBScript


Anonymous said...

I really like when people are expressing their opinion and thought. So I like the way you are writing

Anonymous said...

Do you have copy writer for so good articles? If so please give me contacts, because this really rocks! :)