Discussion Locked

How to Script Printer Removals

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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?

1 reply

by deepsand

This is a tech. problem, in search of a solution.

It properly belongs in "Technical Q&A," not in "Discussions." Please re-post there.

Not only will you be more likely to attract the attention of those seeking to provide answers, but you will also make it easier for those seeking discussions to find such.

Thank you.

This discussion is closed to new replies.