rmdir . /s /q
And repeat the same error years later when the batch file failed to cd to the destination folder. Added
if %CD% == %DESTDIR%
And repeat the same error years later when the batch file failed to cd to the destination folder. Added
to avoid that problem.