Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Batch compilation method
#1
In this case, a compilation of only a single file.
How can I compile batch files from multiple folders?

Function TOOL_BIN
Code:
Copy      Help
function!

#if EXE=1
#exe addfile "E:\Info\aapt.exe" 2
int+ ___eqgd
if !___eqgd
,lock
,if !___eqgd
,,if !GetModuleHandle("aapte.exe")
,,,_s.expandpath(F"$temp$\a\bin\aapte.exe")
,,,if !FileExists(_s)
,,,,if(!ExeExtractFile(2 _s)) ret ;;also creates folders.
,,,if(!LoadLibraryW(@_s)) ret
,,___eqgd=1
#endif
ret 1
#2
Function BatchMakeExe
Code:
Copy      Help
;/
function $qmItemList

;Automates creating exe from all QM items specified in qmItemList (multiline).


int iid=qmitem ;;remember currently open QM item to restore finally

act _hwndqm
str s
foreach s qmItemList
,mac+ s ;;open the QM item
,men 33233 _hwndqm ;;Make Exe...
,int wMA=wait(30 WA win("Make exe" "#32770" "qm"))
,err end "failed. Make sure that exe settings are saved, so that would not show dialog 'Where to save settings'."
,but 1 wMA ;;click OK
,wait 0 -WC wMA ;;wait until Make Exe dialog closed
,0.2 ;;make this number bigger if error "Compiler busy"

mac+ iid


Forum Jump:


Users browsing this thread: 1 Guest(s)