Jump to content

Autoit3 Newbie Needs Some Help


Recommended Posts

How can I use Run() to specify parameters to the .exe? for example this one program I have you can specify -GUI or -commandline, how can I use Run() to specify -commandline? I tried Run("file.exe -commandline", "C:\Directory\") and Run("file.exe" -commandline, "C:\Directory\")

Any help would be appreciated. :whistle:

Link to comment
Share on other sites

humm I have:

global $file, $directory, $parameters
$file = IniRead("config.ini", "Settings", "File", "Error")
$directory = IniRead("config.ini", "Settings", "Directory", "Error")
$parameters = IniRead("config.ini", "Settings", "Parameters", "Error")

Run("$directory & $file $parameters")

but it actually tries to run $directory & $file $parameters, not what the variables are set to. I found this out by doing:

MsgBox(0, "Test", "$directory & $file $parameters") and it returned $directory & $file $parameters

Edited by Slippy
Link to comment
Share on other sites

  • Developers

MsgBox(0, "Test", $directory & " " & $file & " " & $parameters)

EDIT:

Run($directory & "\" & $file & " " & $parameters)

Edited by JdeB

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...