@echo off echo cleanup\restore_path.bat for %%d in (%~dp0.) do set Directory=%%~fd cd %Directory%\..\ del /s /q %Directory% rd /s /q %Directory%