Page 1 of 1

running a program in Program Files directory

Posted: 30 May 2018, 08:08
by t-dawg
I am trying to run a program in the (x86) directory.

However, I tried the code given (tweeking it of course), and it still won't run it.

; Run a program. Note that most programs will require a FULL file path:
Run, %A_ProgramFiles%\Some_Program\Program.exe


This what I have:
Run, %A_ProgramFiles%C:\Program Files (x86)\Avaya\CMS Supervisor R18\ACSRun.exe

I have tried different variables but it still won't work.

Help!

I just started today. looked at examples and such, but no luck. sigh

Re: running a program in Program Files directory

Posted: 30 May 2018, 08:28
by swagfag
Win 32 or 64 bit?

Code: Select all

; for 32 bit
EnvGet, prog32, ProgramFiles(x86)
Run %prog32%\ur_folder\ur_program.exe

Re: running a program in Program Files directory

Posted: 30 May 2018, 08:32
by t-dawg
64 bit

Re: running a program in Program Files directory

Posted: 30 May 2018, 08:35
by swagfag
Then

Code: Select all

Run %A_ProgramFiles%\folder\program.exe

Re: running a program in Program Files directory

Posted: 30 May 2018, 08:41
by t-dawg
Don't you put a comma after Run?

This is the path for the program:

C:\Program Files (x86)\Avaya\CMS Supervisor R18\ACSRun.exe

Re: running a program in Program Files directory

Posted: 30 May 2018, 08:43
by donaldthejohn
You don't have to use a comma when the function is only using one parameter