running batch files in all subfolders

This example will step into each subfolder and run a batch file called sync.bat and return to the original path.

@echo off
for /d %%f in (*) do pushd "%%f" & echo synchronising %%f ... & call "sync.bat" & popd

useful batch files

These files could be harmful if you don’t know what you’re doing.
Use and download at your own risk!

The following file will move all zip, rar, iso and exe files in a folder with similar name (that it will create on the fly)

for %%F in (*.zip *.exe *.rar *.iso) do md "%%~nF" & move "%%F" "%%~nF"