Jump to content
Sign in to follow this  

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)

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.