Sign in to follow this  
Followers 0
Guest daggerman

System Variables and Run()

4 posts in this topic

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



Hmm, %ProgramFiles% is a bit more like

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

:whistle:

Share this post


Link to post
Share on other sites

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:


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          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  
Followers 0