Created
December 1, 2018 09:35
-
-
Save asears/2c74ad58887bd0b9c5b9cce0c295563a to your computer and use it in GitHub Desktop.
Take Ownership and then delete files from internal/external drives
This file contains hidden or 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
| REM takes ownership then deletes files | |
| REM use this for external drives from another machine | |
| set pathname="e:\cygwin64" | |
| takeown /f %pathname% /r | |
| icacls %pathname% /reset /T | |
| del /s /q %pathname% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment