AnonymousNamefag

srmtree.bat

Dec 24th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.18 KB | None | 0 0
  1. @rem Securely remove a directory tree
  2. :dir
  3. @echo off
  4. ren %1 00000000
  5. cd 00000000
  6. attrib -h *
  7. for /r %%f in (*) do srm %%~sf
  8. for /d %%f in (*) do call :dir %%~sf
  9. cd ..
  10. rd 00000000
Add Comment
Please, Sign In to add comment