Jump to content

Using Printui w/ Autoit


Recommended Posts

Could someone please look at this line of code see if they see the error. I have verified the script is gathering all the required information but when I try to pass it to printui in the script it gives me an error that either the operation can not be completed or that it can't find a suitable driver. If I run the command manually and use the same information it is getting form the variables it works fine.

RunWait(@ComSpec & " /c " & 'rundll32 printui.dll,PrintUIEntry /if /b "' & $Name & '" /f "' & $PrinterDriver & '" /r "' & "IP_" & $IP & '" /m "' & $Model & '"', "",@SW_HIDE)

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...