@echo off call tolua_make.bat for /f "tokens=1 delims=." %%i in ('dir *.pkg /b') do lua\tolua.exe -o %%i.c %%i.pkg c:\lcc\bin\make.exe install_game