I need a way to recursively delete a folder and its children.
Is there a prebuilt tool for this, or do I need to write one?
DEL /S doesn\'t dele
DEL /S
admin:
takeown /r /f folder cacls folder /c /G "ADMINNAME":F /T rmdir /s folder
Works for anything including sys files
EDIT: I actually found the best way which also solves file path too long problem as well:
mkdir \empty robocopy /mir \empty folder