Skip to content

Instantly share code, notes, and snippets.

@simon987
Created October 16, 2018 00:25
Show Gist options
  • Save simon987/f5c2cd7602898615ac9bc8c762d9fe1d to your computer and use it in GitHub Desktop.
Save simon987/f5c2cd7602898615ac9bc8c762d9fe1d to your computer and use it in GitHub Desktop.

Easiest way to get rid of empty sub-directories on windows.

ROBOCOPY Parent-Directory-You-Want-To-Purge Parent-Directory-You-Want-To-Purge /S /MOVE

In other words, if I have a bunch of empty season and episode folders in my TV dir, i'd run: ROBOCOPY Television Television /S /MOVE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment