Hello
I'm putting together a very simple script to add some new network printers and remove old ones. I want to apply the same script to all users but the trouble is than not all of them have the same old printers for removal.
I'm using the line 'WshNetwork.RemovePrinterConnection "\\server\printer"'but obviously the script stops and generates an error if the specified printer doesn't exist on the computer.
Is there some code I can use to say if this printer exists delete it, if not continue to the next line?
Thanks
Nick
I'm putting together a very simple script to add some new network printers and remove old ones. I want to apply the same script to all users but the trouble is than not all of them have the same old printers for removal.
I'm using the line 'WshNetwork.RemovePrinterConnection "\\server\printer"'but obviously the script stops and generates an error if the specified printer doesn't exist on the computer.
Is there some code I can use to say if this printer exists delete it, if not continue to the next line?
Thanks
Nick