Sign in to follow this  
Followers 0
tharris

Using Printui w/ Autoit

1 post in this topic

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  
Followers 0