@echo off if "%OS%" == "Windows_NT" setlocal if "%1" == "" ( set SCRIPT_NAME=%~f0 ) else ( set SCRIPT_NAME=%~f1 ) for /D %%i in (*) do ( cd %%i svn propset svn:executable *.sh svn propset svn:executable *.bat svn propset svn:executable *.exe call %SCRIPT_NAME% %SCRIPT_NAME% cd .. )