В соответствии с этим ответом в разделе Как удалить папку, которая вложена достаточно глубоко и избегать «Имя файла слишком длинное»?, Я создал 1.bat файл со следующим источником:

@echo off
if not (%1)==() cd %1
for /D %%i in (*) do if not %%i==_ ren "%%i" _
pushd _ 
%0 
popd

Я положил этот файл рядом с папкой, которую я хочу удалить.

Я нажимаю на 1.bat

и смотрите следующее:

.....
Access is denied.
The system cannot find the path specified.
Access is denied.
The system cannot find the path specified.
Access is denied.
The system cannot find the path specified.
Access is denied.
The system cannot find the path specified.
Access is denied.
The system cannot find the path specified.
Access is denied.
....

Что я не прав?

0