• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 196
  • Last Modified:

I need to remove network printers but I need to ue a "if exists" command.

I am using
"rundll32 printui.dll\,PrintUIEntry /dn /n\\\\server\\queue"
as my command but am getting errors if the printer in question is not already installed on the end users pc.  I cannot find a "if exists" switch.
0
TheITGuy
Asked:
TheITGuy
1 Solution
 
oBdACommented:
Simply add a /q (for quiet mode) to the command line to suppress the warning.
0
 
TheITGuyAuthor Commented:
Cool.. That is what I needed.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now