Created
October 22, 2021 03:54
-
-
Save krishnathota/4a281f18c3713d7f6b28acafbc79e7a3 to your computer and use it in GitHub Desktop.
Delete with Rimraf from context menu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\shell\Delete with rimraf] | |
@="" | |
[HKEY_CLASSES_ROOT\Directory\shell\Delete with rimraf\command] | |
@="cmd /c \"cd %1 && delete.bat\"" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
ECHO. | |
ECHO %CD% | |
ECHO. | |
ECHO Are you sure to delete the folder with Rimraf? | |
PAUSE | |
SET FOLDER=%CD% | |
CD / | |
rimraf "%FOLDER%" | |
rem DEL /F/Q/S "%FOLDER%" > NUL | |
rem RMDIR /Q/S "%FOLDER%" | |
EXIT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment