Jump to content

How to Run an uncompiled script with switches


Recommended Posts

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

  • Developers

$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

  • Developers

*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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...