Sign in to follow this  
Followers 0
BigDaddyO

How to Run an uncompiled script with switches

5 posts in this topic

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


Share this post


Link to post
Share on other sites



$AUTOITDIR = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "Installdir")
$AUTOITEXE = $AUTOITDIR & "\AutoIt3.exe"
RunWait('"' & $AUTOITEXE & '"' & ' yourscript.au3 /s')


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

*edits JdeB's post*

instead of $AUTOITDIR = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "Installdir")

why not just use @AutoITExe?


FootbaG

Share this post


Link to post
Share on other sites

*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.... :) )

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Sweet... thanks guys, that will save me a bunch of time.


Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0