“rd” and “rmdir” only work on empty directories in MS-DOS (and I assume, by extension, in Windows shell). “deltree” is for nuking a complete tree including files, as the name suggests.
In the original Reddit post it’s mentioned that the agent ran “rmdir /s” which does in fact work on directories containing files and/or subdirectories.
Windows has
rmdir?“rd” and “rmdir” only work on empty directories in MS-DOS (and I assume, by extension, in Windows shell). “deltree” is for nuking a complete tree including files, as the name suggests.
In the original Reddit post it’s mentioned that the agent ran “rmdir /s” which does in fact work on directories containing files and/or subdirectories.
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/rmdir
Apparently.
Wait, what do people use other than rmdir?
I don’t have a Windows computer on hand, but I think
delworks on directories? I’m going by very old memories here