Jump to content

Recommended Posts

Guest daggerman
Posted

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!

  • Developers
Posted

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

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