Approve the Cookies
This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and our Privacy Policy.
OK
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Guest
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Register to forums    Log in

 
FORUMS General Gear Talk Computers 
Thread started 29 Oct 2008 (Wednesday) 21:29
Search threadPrev/next
sponsored links (only for non-logged)

Need to delete empty folders - is there a quick way?

 
Damo77
Goldmember
Avatar
4,699 posts
Likes: 115
Joined Apr 2007
Location: Brisbane, Australia
     
Oct 29, 2008 21:29 |  #1

Hi all, I'm using Synctoy to backup ("echo") my PC to an external drive, and I love it.

My only whinge is that when I delete a folder from my computer, Synctoy removes all the files from that folder on the backup drive, but leaves the empty folder behind. Before too long, I have heaps of these empty folders littering the drive.

My question is, does anybody know of a quick way to find and delete these empty folders? At the moment I just have to hold my mouse over each folder to see what size it is, and if it says "0 bytes" I delete it. Slow and painful!


Damien
Website (external link) | Facebook (external link)

  
  LOG IN TO REPLY
OdiN1701
Goldmember
Avatar
2,523 posts
Joined Jul 2005
     
Oct 29, 2008 21:33 |  #2
bannedPermanent ban

Well I could write a VBA program to do it.

There is no option in the program to do it? No update/fix? Tried calling their support?


SAY NO TO SPEC WORK! (external link)
_______________
40D w/ Grip |
20D w/ Grip | 10D
10-22mm|17-40f/4L|24-105f/4LIS|70-200f/2.8LIS|50f/1.4|100f/2.8Macro

  
  LOG IN TO REPLY
Damo77
THREAD ­ STARTER
Goldmember
Avatar
4,699 posts
Likes: 115
Joined Apr 2007
Location: Brisbane, Australia
     
Oct 29, 2008 21:42 |  #3

Hmmm ... as far as I know I have the up-to-date version, but I'll check on that ...


Damien
Website (external link) | Facebook (external link)

  
  LOG IN TO REPLY
Damo77
THREAD ­ STARTER
Goldmember
Avatar
4,699 posts
Likes: 115
Joined Apr 2007
Location: Brisbane, Australia
     
Oct 29, 2008 22:14 |  #4

There was an update, and I've installed it, but the problem remains ...


Damien
Website (external link) | Facebook (external link)

  
  LOG IN TO REPLY
tim
Light Bringer
Avatar
51,010 posts
Likes: 375
Joined Nov 2004
Location: Wellington, New Zealand
     
Oct 29, 2008 22:41 |  #5

Stop looking at your backup drive... unless you're checking data's there or you've had a problem it doesn't matter if there are empty folders. Not a solution, just a practical and relatively polite way of telling you to stop obsessing over unimportant details ;)


Professional wedding photographer, solution architect and general technical guy with multiple Amazon Web Services certifications.
Read all my FAQs (wedding, printing, lighting, books, etc)

  
  LOG IN TO REPLY
Damo77
THREAD ­ STARTER
Goldmember
Avatar
4,699 posts
Likes: 115
Joined Apr 2007
Location: Brisbane, Australia
     
Oct 29, 2008 23:01 |  #6

Ha ha! Unusually polite, I would say, by your standards! ;)

Perhaps you're right, but if, heaven forbid, I ever needed to restore all of my stuff from that disk because my computer had failed, it would be a messy process. I don't think my desire for drive cleanliness is unreasonable.


Damien
Website (external link) | Facebook (external link)

  
  LOG IN TO REPLY
OdiN1701
Goldmember
Avatar
2,523 posts
Joined Jul 2005
     
Oct 29, 2008 23:13 |  #7
bannedPermanent ban

Calling support would seem to be your only solution, other than a custom software solution or manually trudging away.


SAY NO TO SPEC WORK! (external link)
_______________
40D w/ Grip |
20D w/ Grip | 10D
10-22mm|17-40f/4L|24-105f/4LIS|70-200f/2.8LIS|50f/1.4|100f/2.8Macro

  
  LOG IN TO REPLY
tim
Light Bringer
Avatar
51,010 posts
Likes: 375
Joined Nov 2004
Location: Wellington, New Zealand
     
Oct 29, 2008 23:17 |  #8

Solution (external link) (first link).


Professional wedding photographer, solution architect and general technical guy with multiple Amazon Web Services certifications.
Read all my FAQs (wedding, printing, lighting, books, etc)

  
  LOG IN TO REPLY
Damo77
THREAD ­ STARTER
Goldmember
Avatar
4,699 posts
Likes: 115
Joined Apr 2007
Location: Brisbane, Australia
     
Oct 29, 2008 23:24 |  #9

Huh ... I didn't see that one.

Thanks, it seems to work a treat!


Damien
Website (external link) | Facebook (external link)

  
  LOG IN TO REPLY
OdiN1701
Goldmember
Avatar
2,523 posts
Joined Jul 2005
     
Oct 29, 2008 23:31 |  #10
bannedPermanent ban

Google is nice also :p

Someone already made your custom software :)

Also saw an ingenious way to use a batch file and the DIR command...I wouldn't have thought of that one.


SAY NO TO SPEC WORK! (external link)
_______________
40D w/ Grip |
20D w/ Grip | 10D
10-22mm|17-40f/4L|24-105f/4LIS|70-200f/2.8LIS|50f/1.4|100f/2.8Macro

  
  LOG IN TO REPLY
ocabj
Goldmember
Avatar
1,120 posts
Likes: 3
Joined Jan 2008
Location: Riverside, CA (USA)
     
Oct 30, 2008 08:42 |  #11

Just write a script that traverses the directory structure to find folders with no contents and deletes them.

I'm sure you can do this in Windows scripting. If not, you could easily do it in bash, korn, tcsh, or some other Unix shell (download Cygwin for Win32 GNU environment). Better yet, just do it in Perl.


Jonathan Ocab - https://www.ocabj.net (external link) - http://jocabphoto.com (external link)

  
  LOG IN TO REPLY
sponsored links (only for non-logged)

3,514 views & 0 likes for this thread, 4 members have posted to it.
Need to delete empty folders - is there a quick way?
FORUMS General Gear Talk Computers 
AAA
x 1600
y 1600

Jump to forum...   •  Rules   •  Forums   •  New posts   •  RTAT   •  'Best of'   •  Gallery   •  Gear   •  Reviews   •  Member list   •  Polls   •  Image rules   •  Search   •  Password reset   •  Home

Not a member yet?
Register to forums
Registered members may log in to forums and access all the features: full search, image upload, follow forums, own gear list and ratings, likes, more forums, private messaging, thread follow, notifications, own gallery, all settings, view hosted photos, own reviews, see more and do more... and all is free. Don't be a stranger - register now and start posting!


COOKIES DISCLAIMER: This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and to our privacy policy.
Privacy policy and cookie usage info.


POWERED BY AMASS forum software 2.58forum software
version 2.58 /
code and design
by Pekka Saarinen ©
for photography-on-the.net

Latest registered member is semonsters
1063 guests, 104 members online
Simultaneous users record so far is 15,144, that happened on Nov 22, 2018

Photography-on-the.net Digital Photography Forums is the website for photographers and all who love great photos, camera and post processing techniques, gear talk, discussion and sharing. Professionals, hobbyists, newbies and those who don't even own a camera -- all are welcome regardless of skill, favourite brand, gear, gender or age. Registering and usage is free.