Sign in to follow this  
Followers 0
DeepBlue

Variables replace

8 posts in this topic

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?

Share this post


Link to post
Share on other sites



Have you checked out the help file under the Run() Function and the @ProgramFilesDir Macro?

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

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

@ProgramFilesDir is a builtin macro.

Does this help you?

Share this post


Link to post
Share on other sites

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

@ProgramFilesDir is a builtin macro.

Does this help you?

<{POST_SNAPBACK}>

Thanks! It works!

Share this post


Link to post
Share on other sites

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")

Share this post


Link to post
Share on other sites

Actually this legacy Option (Autoit 2 like) it is there from lots of time...

Share this post


Link to post
Share on other sites

Opt("ExpandEnvStrings", 1)

That's a needful option, thanks!

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