Force delete bat command

Start the Windows Notepad program and enter the following two lines of code commands:

DEL /F /A /Q \\?\%1
RD /S /Q \\?\%1

The function of the first line of commands is to delete the specified folder and All files in the folder below it, the second command says to delete the folder and the empty subfolders below it.

Save the above notepad file as a batch file, that is, change the file extension to .BAT, take the file name: DEL.BAT, save it to the desktop or any other location, and close the Notepad program window.

Open the folder window or drive window where the special character folder that cannot be deleted is located. After restoring the window, drag and drop the special character folder that cannot be deleted normally under Windows into the DEL.BAT file icon on the desktop to realize the folder. The deletion operation has been

transferred from Jiangsu Sanai Network

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326441850&siteId=291194637