DeepBlue 0 Posted October 11, 2004 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
JSThePatriot 18 Posted October 11, 2004 Have you checked out the help file under the Run() Function and the @ProgramFilesDir Macro? JS AutoIt LinksFile-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.ComputerGetInfo UDF's Updated! 11-23-2006External LinksVortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Share this post Link to post Share on other sites
MHz 80 Posted October 11, 2004 Run(@ProgramFilesDir & "\Directory\Application.exe") @ProgramFilesDir is a builtin macro. Does this help you? Share this post Link to post Share on other sites
DeepBlue 0 Posted October 11, 2004 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
ezzetabi 3 Posted October 11, 2004 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
CyberSlug 6 Posted October 11, 2004 Another alternative with the newest version of AutoIt: Opt("ExpandEnvStrings", 1) Run("%programfiles%\Internet Explorer\iexplore.exe") Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Share this post Link to post Share on other sites
ezzetabi 3 Posted October 11, 2004 Actually this legacy Option (Autoit 2 like) it is there from lots of time... Share this post Link to post Share on other sites
DeepBlue 0 Posted October 12, 2004 Opt("ExpandEnvStrings", 1)That's a needful option, thanks! Share this post Link to post Share on other sites