@echo off & setlocal enableextensions :: :: ./Catch-toclify.bat - ... (https://github.com/rasbt/markdown-toclify) :: if [%1] == [] goto :Usage set files= %*% set root=%~dp0 set toclify=%root%\markdown-toclify.py echo Converting: for %%f in ( %files% ) do ( echo "%%f python "%toclify%" --github --exclude_h 1,3 %%f -o %%f.tmp copy /y %%f.tmp %%f >nul del %%f.tmp ) endlocal & goto :EOF :Usage echo %0 [file...] endlocal & goto :EOF rem rem end of file rem