Solved

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

Posted on 2007-12-05
2
189 Views
Last Modified: 2011-09-20
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
Comment
Question by:TheITGuy
2 Comments
 
LVL 84

Accepted Solution

by:
oBdA earned 50 total points
ID: 20413117
Simply add a /q (for quiet mode) to the command line to suppress the warning.
0
 
LVL 1

Author Closing Comment

by:TheITGuy
ID: 31412879
Cool.. That is what I needed.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Viewers will learn how to use the Hootsuite Dashboard.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question