Jump to content

Autoit exe package and environment variable


Recommended Posts

Posted

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.

Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...