grasshopper Posted May 12, 2005 Posted May 12, 2005 as of yesterday i am new to working with autoitv3. i think this is going to be a great tool for administering servers and workstations. i am unable to successfully execute the following line of code: Run ("$variclient.exe -config C:\Temp\IntegrityDesktop\source\Policy.xml") it generates the following error > Error: Unable to execute the external program. i beleive the problem is with the syntax - specificially in adding the variable to the Run command. the variable $var = C:\Program Files\Zone Labs\Integrity Client\ how do i properly add the variable $var to the run command above?
GaryFrost Posted May 12, 2005 Posted May 12, 2005 as of yesterday i am new to working with autoitv3. i think this is going to be a great tool for administering servers and workstations.i am unable to successfully execute the following line of code:Run ("$variclient.exe -config C:\Temp\IntegrityDesktop\source\Policy.xml")it generates the following error > Error: Unable to execute the external program.i beleive the problem is with the syntax - specificially in adding the variable to the Run command. the variable $var = C:\Program Files\Zone Labs\Integrity Client\how do i properly add the variable $var to the run command above?<{POST_SNAPBACK}>is this what you meant to do?Run ($var & "iclient.exe -config C:\Temp\IntegrityDesktop\source\Policy.xml") SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
mother9987 Posted May 12, 2005 Posted May 12, 2005 Run ($var & "iclient.exe -config C:\Temp\IntegrityDesktop\source\Policy.xml")
grasshopper Posted May 12, 2005 Author Posted May 12, 2005 Run ($var & "iclient.exe -config C:\Temp\IntegrityDesktop\source\Policy.xml")<{POST_SNAPBACK}>yes - that's it. i was trying different itterations and was was not able to get it to work.thanks for your help.
grasshopper Posted May 12, 2005 Author Posted May 12, 2005 yes - that's it. i was trying different itterations and was was not able to get it to work.thanks for your help.<{POST_SNAPBACK}>thanks for the help with the syntax qeustion. i have another...how do i place a variable in the middele of the Run command?Run ($var & "iclient.exe -config C:\Temp\IntegrityDesktop\source\Policy.xml") i would like to replace the path with a variable - here is what i have come up with so far. it however does not work.Run ($var&"iclient.exe -config" $var2&"\Policy.xml")andRun ($var&"iclient.exe -config "$var2&"\Policy.xml")what is the correct syntax for this line of code?
CyberSlug Posted May 12, 2005 Posted May 12, 2005 Run ($var & "iclient.exe -config " & $var2 &"\Policy.xml")Just remeber to use & to join strings and variables:"stringOne" & $var1 & $var2 & "stringTwo" & "anotherString" & $anotherVar Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
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