BigDaddyO Posted March 31, 2005 Share Posted March 31, 2005 Does anyone know how to run an uncomplied script with switches? I have a script that has a Setup portion that is only accessable when using a /s switch but right now I have to compile it everytime I want to see the script run in Setup mode. I am using Scite but I can't figure out how to run with switches. I even tried to use the AutoIT3 run script utility but it won't accept the /s says it's an invalid file name. thanks, Mike Link to comment Share on other sites More sharing options...
Developers Jos Posted March 31, 2005 Developers Share Posted March 31, 2005 $AUTOITDIR = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "Installdir") $AUTOITEXE = $AUTOITDIR & "\AutoIt3.exe" RunWait('"' & $AUTOITEXE & '"' & ' yourscript.au3 /s') 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...
layer Posted March 31, 2005 Share Posted March 31, 2005 *edits JdeB's post*instead of $AUTOITDIR = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "Installdir")why not just use @AutoITExe? FootbaG Link to comment Share on other sites More sharing options...
Developers Jos Posted March 31, 2005 Developers Share Posted March 31, 2005 *edits JdeB's post*instead of $AUTOITDIR = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "Installdir")why not just use @AutoITExe?<{POST_SNAPBACK}>yeap that should work !!... ( just did a cut&paste of some code i have and forgot about this addition.... ) 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...
BigDaddyO Posted March 31, 2005 Author Share Posted March 31, 2005 Sweet... thanks guys, that will save me a bunch of time. 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