It seems like the PrintUI.dll has a different error handling system than the typical command. If I try to run a conditional command like:
(rundll32 printui.dll,PrintUIEntry /y /n "foo") & (echo Success) | (echo Fail)
This command will evaluate as false but the error alert isn't suppressed. How do I suppress these alerts?
Error:
I found the answer. You must include Modification Parameter /q
.
(rundll32 printui.dll,PrintUIEntry /y /n /q "foo") & (echo Success) | (echo Fail)
MS Documentation: http://technet.microsoft.com/en-us/library/ee624057.aspx