2 ms·
He's not handling spaces in directory names in the "cd %1" portion of his context-menu entry. Fortunately his "fastdel.bat" should prompt the user and, hopefull
by EvanAnderson 9y ago
He's not handling spaces in directory names in the "cd %1" portion of his context-menu entry. Fortunately his "fastdel.bat" should prompt the user and, hopefully, they'll catch the mistake.
Calling CMD.EXE from Explorer without double-quoting can have unintended consequences when ampersands and parentheses are present in the filename too. I'd hate to "Fast Delete" a directory named "& rd /s /q %SystemRoot% &" using his shell context menu entry.
If I was hell-bent on doing this I'd probably add it to my user registry w/ the command:
reg add "HKEY_CURRENT_USER\Software\Classes\Directory\shell\Fast Delete\command" /d "cmd /c rd /s ""%1"""
There's still probably some fun metacharacter injection possibilities there, too, however.