DeepBlue Posted October 11, 2004 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?
JSThePatriot Posted October 11, 2004 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)
MHz Posted October 11, 2004 Posted October 11, 2004 Run(@ProgramFilesDir & "\Directory\Application.exe") @ProgramFilesDir is a builtin macro. Does this help you?
DeepBlue Posted October 11, 2004 Author Posted October 11, 2004 Run(@ProgramFilesDir & "\Directory\Application.exe")@ProgramFilesDir is a builtin macro.Does this help you?<{POST_SNAPBACK}>Thanks! It works!
ezzetabi Posted October 11, 2004 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")
CyberSlug Posted October 11, 2004 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!
ezzetabi Posted October 11, 2004 Posted October 11, 2004 Actually this legacy Option (Autoit 2 like) it is there from lots of time...
DeepBlue Posted October 12, 2004 Author Posted October 12, 2004 Opt("ExpandEnvStrings", 1)That's a needful option, thanks!
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