Jump to content

Autoit exe package and environment variable


Guest jrwms2
 Share

Recommended Posts

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.

Link to comment
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.

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