Hi, Does anyone has any scripts to delete the empty folder and subsequent empty folders inside those folders from the path script is run from ?? Or any program that does this ? Any help will be greatly appreciated. Thanks.
/ Command-Line: Code: for /f "usebackq delims=" %%d in (`"dir /ad/b/s | sort /R"`) do rd "%%d" pause Remove 'pause' if you don't want any output (except errors). Script could have some limitations removing folders with Unicode characters. / Programs that can do the same: Empty Folder Nuker - RED (Remove Empty Directories) - ... Those are dedicated programs for such functions, but other files managers can do this too with some settings and their own internal commands. / PowerShell and VB Scripts : are also available just google for it.