I have a down and dirty app that deletes a bunch of printers and adds new ones. I don't care, at least at the point of adding, whether or not the printer was found or not so I am using the /q option to suppress errors. What I am finding is that if the printer can not be found it still throws the windows error saying it can not connect to the printer even though I am using the /q option. Does anyone know how I can suppress this message? Maybe that is the problem, Windows doesn't treat the can not connect to the printer as an actual error message? Is there another way I can add the printers?
Here is the simple line of code. All I do is add the printers line by line with a shell statement
Here is the simple line of code. All I do is add the printers line by line with a shell statement
Code:
rundll32 printui.dll,PrintUIEntry /in /q /n\\PrimaryDomain\ExpediteRed
Comment