Batch Script to Delete all the empty folders in windows


/ Published in: DOS Batch
Save to your folder(s)



Copy this code and paste it in your HTML
  1. REM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2. REM
  3. REM FILENAME : GETDIRS.BAT
  4. REM
  5. REM DESCRIPTION : GENERATE LIST OF FOLDERS RECURSIVELY IN A FILE "TOEMPTY.BAT"
  6. REM
  7. REM AUTHOR : Napoleon Arouldass S. http://neps.in
  8. REM
  9. REM DATE WRITTEN : Tuesday, August 21, 2007 10:37:25 PM
  10. REM
  11. REM COMMENTS/REMARKS : This is the first step
  12. REM
  13. REM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  14. REM GET DIRECTORY LISTING OF WINDOWS FILE SYSTEM
  15. DIR %1/AD/B/S | SORT /R > TOEMPTY.BAT
  16. REM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

URL: http://neps.in/2008/02/01/cleaningup-empty-folders-in-windows/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.