Forum Discussion
Oferv
13 years agoSuper Contributor
i got this code lines:
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)
Next
that if i put in a .vbs file and run i get the list of printes.now, is there an option that this code will run not from a .vbs file but from the test complete and that i'll be able to get each printer's name a nd compare it to a name i'm looking for?
Thanks
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)
Next
that if i put in a .vbs file and run i get the list of printes.now, is there an option that this code will run not from a .vbs file but from the test complete and that i'll be able to get each printer's name a nd compare it to a name i'm looking for?
Thanks
Related Content
- 6 years agocmbdnne
- 8 years agom_essaid
- 5 years agodjvakarjoshi1
Recent Discussions
- 2 days agoGane195