Sign in to follow this  
Followers 0
Guest jrwms2

Autoit exe package and environment variable

4 posts in this topic

I have created an kix script that is to start a "autoit".exe package from a file server and the command that I am having issues with is

Run ("%packages%\amagent\amonitor37_lu.exe").

The environment variable is recognized by the pc. I am using scriptlogic to call the Autoit exe. This is the line it keeps erroring out on. the error code I get is first error2 then an error -10. Any help is greatly appreciated.

Share this post


Link to post
Share on other sites



Expanding environment variables in autoit v.3 is an option. Look at autoitsetoption for an explanation.


Who else would I be?

Share this post


Link to post
Share on other sites

Or you can use EnvGet() function to retrieve an environment variable.

Share this post


Link to post
Share on other sites

Expanding environment variables in autoit v.3 is an option. Look at autoitsetoption for an explanation.

<{POST_SNAPBACK}>

Thanks for the update and I will look at that option. I found that I was missing a step My line should have been this

$packages = EnvGet ("packages")

Run($packages & "path to file")

Too many languages to work with sometimes you try to use one in the wrong format. But it is fun to try and combine Kix, Autoit, WSH, VB, .Net Makes my work interesting.

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