set dir="aidl" for /r %dir% %%i in (*.aidl) do java antlr.AidlToJson "%%i" json