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