Compile java files in sub-folders on Windows: for /r %a in (*.java) do javac %a