Jump to content
Sign in to follow this  
Guest daggerman

System Variables and Run()

Recommended Posts

Guest daggerman

Hi folks,

how would a batch line like

%ProgramFiles%\TEST\test.exe

look in an autoit.au3 file?

I can declare the ProgramDir with

$var = EnvGet("ProgramFiles")

but neither Run('$var\TEST\test.exe') nor

Run('@ProgramsDir\TEST\test.exe') will work.

Thanks much!

Share this post


Link to post
Share on other sites
MHz

Hmm, %ProgramFiles% is a bit more like

Run(@ProgramFilesDir & '\TEST\test.exe')

:whistle:

Share this post


Link to post
Share on other sites
Jos

Hmm, %ProgramFiles% is a bit more like

Run(@ProgramFilesDir & '\TEST\test.exe')

:dance:

<{POST_SNAPBACK}>

Yea, just changed the literal part... didn't look at the @maro used...

By the way:Long time no speak..... :whistle:


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  

×