0
I work with Angular and it generates project folders that are huge and takes forever to delete with the regular method of folder deletion, but if delete it with the following command in the command line, the folder is gone in a few seconds: rmdir /s /q <folder path>
So, I searched the internet for a solution and found several that tell me to modify the registry. I did, but when I right click on a folder and choose to delete it with the custom menu option ("Folder quick delete"), it does not delete it. Also, If I right click on a blank white space in a folder that has files and child folders and choose "Folder quick delete", it deletes all child folders and some files not in child folders (i.e. in the current root folder). Oddly, if just right click on an empty space in the desktop and choose "Folder quick delete", it not only deletes all folders on the desktop but also some of the shortcuts along with it.
What is wrong with my .reg file?
reg file to add context menu items
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Delete_Folder]
@="Folder quick delete"
"Extended"=-
[HKEY_CLASSES_ROOT\Directory\shell\Delete_Folder\command]
@="C:\\windows\\system32\\cmd.exe /c rmdir /s /q %V"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Delete_Folder]
@="Folder quick delete"
"Extended"=-
[HKEY_CLASSES_ROOT\Directory\Background\shell\Delete_Folder\command]
@="C:\\windows\\system32\\cmd.exe /c rmdir /s /q %V"
[HKEY_CLASSES_ROOT\Drive\shell\Delete_Folder]
@="Folder quick delete"
"Extended"=-
[HKEY_CLASSES_ROOT\Drive\shell\Delete_Folder\command]
@="C:\\windows\\system32\\cmd.exe /c rmdir /s /q %V"
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\Delete_Folder]
@="Folder quick delete"
"Extended"=-
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\Delete_Folder\command]
@="C:\\windows\\system32\\cmd.exe /c rmdir /s /q %V"
I tried your solution, but it did not delete a right clicked folder. I also tried many other different combinations like
@="cmd /c \"rmdir /s /q %1\""
. Still not working. It just quickly opens and closes the cmd window, but the folder is not deleted. Any ideas how I can make it work? Thanks. – Raj Narayanan – 2019-07-24T02:24:32.967