Jump to content

System Variables and Run()


Guest daggerman
 Share

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!

Link to comment
Share on other sites

  • Developers

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 etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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