Jump to content

Env. Variables and Me :(


Recommended Posts

Hey Guys,

First post here so I hope I give enough information. It seems to be pretty easy what I am trying to do, just make an automated installation file for the company I work for. The issue I am having is I am trying to pull some pre-set environmental variables to AutoIt variables to use in the script.

Example ( What I have )

global $loginpass = EnvGet('loginpass');Login password for account (i.e admin $loginpass = pass)

global $computername = EnvGet('computername');Name of computer

global $database = EnvGet('database');Database name used during installation (This is setup prior to running the program)

**Note the variables I am trying to pull would be %loginpass%, %computername% and %database% which are already set under system variables.

Then later when I am using Send to get the variable into the corresponding field

Send($loginpass)

Send($computername)

Send($database)

Cheers,

Freekstile

Link to comment
Share on other sites

Hey Guys,

First post here so I hope I give enough information. It seems to be pretty easy what I am trying to do, just make an automated installation file for the company I work for. The issue I am having is I am trying to pull some pre-set environmental variables to AutoIt variables to use in the script.

Example ( What I have )

global $loginpass = EnvGet('loginpass');Login password for account (i.e admin $loginpass = pass)

global $computername = EnvGet('computername');Name of computer

global $database = EnvGet('database');Database name used during installation (This is setup prior to running the program)

**Note the variables I am trying to pull would be %loginpass%, %computername% and %database% which are already set under system variables.

Then later when I am using Send to get the variable into the corresponding field

Send($loginpass)

Send($computername)

Send($database)

Cheers,

Freekstile

And... what's the problem?

I can do signature me.

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