Sign in to follow this  
Followers 0
Tekoni

How to delete a printer based on it's IP address?

4 posts in this topic

I am creating an Autoit application to install network printers. However, I need a way to check for or delete a printer if it is already installed. I am using Prnmngr.vbs to check for names:

RunWait (@ComSpec & ' /c Cscript "' & $Prnmngr & '" -d -p "' & $printerName & '"', "", @SW_HIDE)

However, the name of any particular printer can vary from computer to computer. Is there a way I can search by IP address and thus get the name as installed on the computer?

Share this post


Link to post
Share on other sites



Have a look >link

1 person likes this

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Share this post


Link to post
Share on other sites

Exactly what I was looking for! Thank you!

Share this post


Link to post
Share on other sites

Anytime :D


Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0