af3m1a Posted May 2, 2013 Posted May 2, 2013 Hello, someone can help me in this problem? I need to write a script that process a list of printers from the folder "Printers and Fax" of windows XP. there is an autoit function that allows to obtain a list of names of defined printers of windows? thanks
Richard Robertson Posted May 2, 2013 Posted May 2, 2013 http://msdn.microsoft.com/en-us/library/windows/desktop/dd162692%28v=vs.85%29.aspx This function will list all the installed printers. Requires an understanding of C/C++ programming to use though.
Moderators JLogan3o13 Posted May 2, 2013 Moderators Posted May 2, 2013 I use this, personally. Most of my printers are network, but I believe it captures local as well: $wbemFlagReturnImmediately = "&h10" $wbemFlagForwardOnly = "&h20" $WMI = ObjGet("winmgmts:\\" & @ComputerName & "\root\CIMV2") $aItems = $WMI.ExecQuery("SELECT * FROM Win32_Printer", "WQL", $wbemFlagReturnImmediately + $wbemFlagForwardOnly) For $printer in $aItems MsgBox(0, "Printers", $printer.Name) Next "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now