Jump to content

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


Tekoni
 Share

Go to solution Solved by MikahS,

Recommended Posts

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?

Link to comment
Share on other sites

  • Solution

Have a look >link

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

 

Link to comment
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

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...