Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Test if printer exists 1

Status
Not open for further replies.

rye8261

Technical User
Jul 6, 2003
359
US
I am looking for help on finding if a networked printer exists on a person’s computer. I have moved all our mapped printers to a new server and i want to run a vb script to test if the old printer exists and if it does, delete the old and remap the new. I just don’t know how to test if it exists because I’ve only used vbs for about 5 days now.

Thanks for any help


---------------------------------------
 
Take a look at the EnumPrinterConnections, RemovePrinterConnection and AddPrinterConnection of the WshNetwork object.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Also take a look here:

faq329-5798

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top