How to Script Printer Removals - TechRepublic
General discussion
March 28, 2005 at 06:45 AM
computer dude

How to Script Printer Removals

by computer dude . Updated 21 years, 3 months ago

Hi all,
I’m trying to create a vbs script that will enable me to automate the process of removing some old printer connections. I’m fairly new at scripting, so I’m not sure of the finer points.

So far, I have created a script to remove the network connection, but the caveat is that if the printer connection does not exist, a window pops up saying… the printer connection does not exist. Is there a way that I can alter the code so that if the network printer connection is not present than it will proceed without the pop up window so that everything is transparent to the user?

This discussion is locked

All Comments