Guest daggerman Posted August 19, 2005 Share Posted August 19, 2005 Hi folks, how would a batch line like %ProgramFiles%\TEST\test.exe look in an autoit.au3 file? I can declare the ProgramDir with $var = EnvGet("ProgramFiles") but neither Run('$var\TEST\test.exe') nor Run('@ProgramsDir\TEST\test.exe') will work. Thanks much! Link to comment Share on other sites More sharing options...
Developers Jos Posted August 19, 2005 Developers Share Posted August 19, 2005 Run(@ProgramsDir & '\TEST\test.exe') SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
MHz Posted August 19, 2005 Share Posted August 19, 2005 Hmm, %ProgramFiles% is a bit more like Run(@ProgramFilesDir & '\TEST\test.exe') Link to comment Share on other sites More sharing options...
Developers Jos Posted August 19, 2005 Developers Share Posted August 19, 2005 Hmm, %ProgramFiles% is a bit more likeRun(@ProgramFilesDir & '\TEST\test.exe') <{POST_SNAPBACK}>Yea, just changed the literal part... didn't look at the @maro used...By the way:Long time no speak..... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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