CoderDunn Posted February 23, 2006 Posted February 23, 2006 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
Developers Jos Posted February 23, 2006 Developers Posted February 23, 2006 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.
CoderDunn Posted February 23, 2006 Author Posted February 23, 2006 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now