DeepBlue Posted October 11, 2004 Share 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? Link to comment Share on other sites More sharing options...
JSThePatriot Posted October 11, 2004 Share Posted October 11, 2004 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) Link to comment Share on other sites More sharing options...
MHz Posted October 11, 2004 Share Posted October 11, 2004 Run(@ProgramFilesDir & "\Directory\Application.exe") @ProgramFilesDir is a builtin macro. Does this help you? Link to comment Share on other sites More sharing options...
DeepBlue Posted October 11, 2004 Author Share Posted October 11, 2004 Run(@ProgramFilesDir & "\Directory\Application.exe")@ProgramFilesDir is a builtin macro.Does this help you?<{POST_SNAPBACK}>Thanks! It works! Link to comment Share on other sites More sharing options...
ezzetabi Posted October 11, 2004 Share 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") Link to comment Share on other sites More sharing options...
CyberSlug Posted October 11, 2004 Share 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! Link to comment Share on other sites More sharing options...
ezzetabi Posted October 11, 2004 Share Posted October 11, 2004 Actually this legacy Option (Autoit 2 like) it is there from lots of time... Link to comment Share on other sites More sharing options...
DeepBlue Posted October 12, 2004 Author Share Posted October 12, 2004 Opt("ExpandEnvStrings", 1)That's a needful option, thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now