Jump to content

Compile with Cmd Line?


 Share

Recommended Posts

I'm trying to compile a script with a cmd line from another script but I cant get it to work . . . .

$Dir = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt","InstallDir")
$DirFull = $Dir & "\Aut2Exe\Aut2Exe.exe"

MsgBox(0,"",$DirFull & " /in <" & @ScriptDir & "\Test.au3> [/out <" & @ScriptDir & "\Test.exe>][/icon <" & $Dir & "\Aut2Exe\Icons\SETUP03.ICO>][/comp 0][/nodecompile]")
Run($DirFull & " /in <""" & @ScriptDir & "\Test.au3""> [/out <""" & @ScriptDir & "\Test.exe"">][/icon <""" & $Dir & "\Aut2Exe\Icons\SETUP03.ICO"">][/comp 0-4][/nodecompile]",$Dir & "\Aut2Exe\")

Can someone post a example with decompile disabled?

Thanks, Hallman :o

Link to comment
Share on other sites

  • Developers

you are trying to run the command line as show in the help msgbox.

You need to remove the optional stuff, the [] and the <> ...... they are not part of the commandline syntax.

try something like :

$Dir = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt","InstallDir")
$DirFull = $Dir & "\Aut2Exe\Aut2Exe.exe"
Run($DirFull & " /in """ & @ScriptDir & "\Test.au3"" /out """ & @ScriptDir & "\Test.exe"" /icon """ & $Dir & "\Aut2Exe\Icons\SETUP03.ICO""")

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

you are trying to run the command line as show in the help msgbox.

You need to remove the optional stuff, the [] and the <> ...... they are not part of the commandline syntax.

try something like :

$Dir = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt","InstallDir")
$DirFull = $Dir & "\Aut2Exe\Aut2Exe.exe"
Run($DirFull & " /in """ & @ScriptDir & "\Test.au3"" /out """ & @ScriptDir & "\Test.exe"" /icon """ & $Dir & "\Aut2Exe\Icons\SETUP03.ICO""")
ooooooh ok. I feel kinda stupid now hehe. Thanks!
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...