dot45 Posted July 15, 2009 Posted July 15, 2009 (edited) RunWait(@ComSpec & " /c" "rundll32 printui.dll, PrintUIEntry /dl /n " & $aPrinters &)What is the proper syntax for the above code?There is supposed to be a space after the n.example:RunWait(@ComSpec & " /c" "rundll32 printui.dll, PrintUIEntry /dl /n " "dog")if $aPrinters=dog Edited July 15, 2009 by dot45 Tools I've Created & Shared[/url][url="http://www.autoitscript.com/forum/index.php?showtopic=97177&st=0&p=698665&hl=printer&fromsearch=1&#entry698665"]Printer Migration Tool
OchoNueve Posted July 15, 2009 Posted July 15, 2009 (edited) RunWait(@ComSpec & " /c" "rundll32 printui.dll, PrintUIEntry /dl /n " & $aPrinters &) What is the proper syntax for the above code? example: RunWait(@ComSpec & " /c" "rundll32 printui.dll, PrintUIEntry /dl /n " "dog") if $aPrinters=dog Try this: RunWait(@ComSpec & "/c rundll32 printui.dll, PrintUIEntry /dl /n " & $aPrinters) EDIT: syntax Edited July 15, 2009 by OchoNueve [font="Times New Roman"]Ocho.[/font]
Zedna Posted July 15, 2009 Posted July 15, 2009 Maybe: $aPrinters = "dog" RunWait(@ComSpec & " /c " & "rundll32 printui.dll, PrintUIEntry /dl /n " & $aPrinters) Resources UDF ResourcesEx UDF AutoIt Forum Search
dot45 Posted July 15, 2009 Author Posted July 15, 2009 (edited) Try this:RunWait(@ComSpec & "/c" "rundll32 printui.dll, PrintUIEntry /dl /n " & $aPrinters)C:\Documents and Settings\116134\Desktop\print_migration_v7.au3(201,72) : ERROR: syntax error RunWait(@ComSpec & " /c" "rundll32 printui.dll, PrintUIEntry /dl /n "error after the last qoute. Edited July 15, 2009 by dot45 Tools I've Created & Shared[/url][url="http://www.autoitscript.com/forum/index.php?showtopic=97177&st=0&p=698665&hl=printer&fromsearch=1&#entry698665"]Printer Migration Tool
Developers Jos Posted July 15, 2009 Developers Posted July 15, 2009 RunWait(@ComSpec & " /c " & "rundll32 printui.dll, PrintUIEntry /dl /n "or RunWait(@ComSpec & " /c rundll32 printui.dll, PrintUIEntry /dl /n " SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
dot45 Posted July 15, 2009 Author Posted July 15, 2009 Maybe: $aPrinters = "dog" RunWait(@ComSpec & " /c " & "rundll32 printui.dll, PrintUIEntry /dl /n " & $aPrinters) This doesnt throw any compile errors, thanks. I'll compile and report back if it works. Tools I've Created & Shared[/url][url="http://www.autoitscript.com/forum/index.php?showtopic=97177&st=0&p=698665&hl=printer&fromsearch=1&#entry698665"]Printer Migration Tool
dot45 Posted July 15, 2009 Author Posted July 15, 2009 RunWait(@ComSpec & " /c " & "rundll32 printui.dll, PrintUIEntry /dl /n "or RunWait(@ComSpec & " /c rundll32 printui.dll, PrintUIEntry /dl /n "My issue is with the variable that I am trying to include at the end of the line. Tools I've Created & Shared[/url][url="http://www.autoitscript.com/forum/index.php?showtopic=97177&st=0&p=698665&hl=printer&fromsearch=1&#entry698665"]Printer Migration Tool
Developers Jos Posted July 15, 2009 Developers Posted July 15, 2009 My issue is with the variable that I am trying to include at the end of the line.I was merely pointing out the code error ... saw that Zedna gave the complete answer already after i posted.Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
dot45 Posted July 15, 2009 Author Posted July 15, 2009 I was merely pointing out the code error ... saw that Zedna gave the complete answer already after i posted.JosThanks, I got that line of code working, now for the fun of my first array. Tools I've Created & Shared[/url][url="http://www.autoitscript.com/forum/index.php?showtopic=97177&st=0&p=698665&hl=printer&fromsearch=1&#entry698665"]Printer Migration Tool
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now