Hi all,


I am trying to Add printer by script as below.

WshNetwork.AddWindowsPrinterConnection "\\Servername\printername" its working fine with user interface, it will pops up one dialog box which have two buttons.
1) Install
2)Cancel by default(selection)

i want to make it install without any UI.

Plz any body have script like passing keys. i tried "left" arrow and than "Enter" , but its not working.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Why re-invent the wheel? XP provides 6 print management scripts. Check out %SystemRoot%\prn*.vbs
Answered 11/29/2010 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity