Sign in to follow this  
Followers 0
CoderDunn

Compile with Cmd Line?

3 posts in this topic

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

Share this post


Link to post
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""")

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

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!

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