Files
windows-scripts/RobocopyDeleteFolder.bat
2023-12-05 19:39:38 -06:00

15 lines
278 B
Batchfile
Executable File

@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