Gizmos Freeware Reviews  

Go Back   Gizmo's Freeware Forum > Freeware Forum > General Computer Support

Closed Thread
 
Thread Tools Display Modes
Old 17. May 2013, 11:27 AM   #1 (permalink)
Full Member
 
Join Date: May 2009
Posts: 85
Default How to delete empty sub-folders that have a long path

Just thought I'd share this solution. If anyone knows of a freeware program that can both locate empty folders/sub-folder and is capable of deleting them even if the sub-folders are way down, I'd like to know.

I've found the program called "Remove Empty Directories" (REM) useful for locating and removing empty folders. However if a sub-folder is way down (the path) with many other folders above it, REM is unable to delete them. In this case I right click the locked folder and open it in explorer, then copy the path and paste it in 7-Zip file managers address bar then press enter to bring it up. Then click the Delete icon and press and hold the shift key while clicking OK to confirm deletion.

While this is a lengthy process it does work. Another way is to use a program that can delete during a reboot, but that can take even longer.

Hope this helps.
Epsilon is offline  
Old 23. May 2013, 05:54 PM   #2 (permalink)
Senior Editor
 
rhiannon's Avatar
 
Join Date: Jul 2008
Location: Land of Enchantment
Posts: 728
Default

Remove Empty Directories is a good program.
You might try running RED with elevated admin rights, that might bypass having to copy and paste the file name.
You can right click the Remove Empty directories .exe file and choose Run As Administrator.
Or, Start button/Accessories/Command Prompt - right click Command Prompt and choose Run As Administrator.
rhiannon is offline  
Old 27. May 2013, 11:42 AM   #3 (permalink)
Full Member
 
Join Date: May 2009
Posts: 85
Default

Thanks for that.
Epsilon is offline  
Old 01. Jun 2013, 11:55 AM   #4 (permalink)
Senior Member
 
sicknero's Avatar
 
Join Date: Mar 2012
Location: England
Posts: 657
Default

I come across this annoyance quite frequently, the problem is a limit on the number of characters that Windows can handle in a file path. The actual limit is apparently 260 including spaces etc, but in practise this number can be lower though I won't pretend to really understand the issues involved.

I often have to reboot to delete stuff, or I'll use something like Paragon BR's volume browser which runs from CD, just in order to delete a few things.

Anyway, I thought I'd just share a couple of free and non-install apps which can help to avoid the problem.

The first is "Path Scan" by Miha Jakovac, it's not been updated in years and I can't find it on the author's site but it still works fine for me and is on Softpedia (http://www.softpedia.com/get/System/...ath-Scan.shtml).

Basically you just give it a directory and a number, and it will give you a list of all the files whose paths exceed that number of characters.
You can't do anything with the list, except save it (I mean you can't use Path Scan to delete or rename etc) but I find it invaluable to make sure I have no file paths that exceed the Windows limit, especially before trying to delete any large directories.

The second is "Long Filename Finder" (http://www.dcsoft.com/products/longff/longff.htm) by Dcsoft which (no surprises) finds long filenames. Again you just give it a directory and a number, and it will give you a list of all the files whose names (not paths) exceed that number of characters. In this case you can also hit F2 and rename files from within the program.

Again, it's an old program but works great for me. If you download a lot of pictures for example, then you'll know it's not unusual to have pictures with a 100+ characters in the filename alone, and LFF is excellent for locating and renaming these. It was originally intended for getting around the problem of burning long filenames to CD, but it's also a great tool for avoiding the Windows file path limit.

Both of these programs are lightweight, don't need installing, seem to work fine in x86 or x64, and also do their thing very quickly.

Last edited by sicknero; 01. Jun 2013 at 12:01 PM.
sicknero is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT +1. The time now is 05:58 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.