@echo off echo Path of folder to delete set /p Destination= cd /d %Destination% cd .. if not exist RobocopyDelete mkdir RobocopyDelete @echo on robocopy RobocopyDelete %Destination% /mir rmdir /s /q RobocopyDelete rmdir /s /q %Destination% @echo off set Destination= pause exit