Jump to content

syntax question: using $var in a RUN command


Recommended Posts

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?

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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")

and

Run ($var&"iclient.exe -config "$var2&"\Policy.xml")

what is the correct syntax for this line of code?

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