Jump to content

Recommended Posts

Posted

Hello,

I'm a new AutoIT user and the forum search didn't get practicable results for me.

I want AutoIT to run %programfiles%\directory\application.exe

Certainly I have to use something with StringReplace but i didn't get it...

How does the command has to be?

Posted

Run(@ProgramFilesDir & "\Directory\Application.exe")

@ProgramFilesDir is a builtin macro.

Does this help you?

<{POST_SNAPBACK}>

Thanks! It works!
Posted

In this case it is useless, but if you'll need to read a windows set you should use:

Run(EnvGet('programfiles') & "\Directory\Application.exe")

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