Software to delete all files above a certain size in several subfolders

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Claude
    Confirmed User
    • Apr 2003
    • 1036

    #1

    Software to delete all files above a certain size in several subfolders

    I need to delete all files above a certain size in 350 subfolders and I don´t want to do it manually.

    Anyone know of any software that can do that ?
  • extreme
    Confirmed User
    • Oct 2002
    • 2120

    #2
    find . -size +2048k -print0 | xargs -0 rm -f

    You can use the -exec flag to find also, I'm assuming your on some unix like device.

    Replace 2048k with whatever size you want.
    That'll be $243

    Comment

    • Claude
      Confirmed User
      • Apr 2003
      • 1036

      #3
      Originally posted by extreme
      find . -size +2048k -print0 | xargs -0 rm -f

      You can use the -exec flag to find also, I'm assuming your on some unix like device.

      Replace 2048k with whatever size you want.
      That'll be $243
      Just wired $243 to you.

      It´s on my own Windows PC, not on a server. Anyone else ?

      Comment

      • mryellow
        Confirmed User
        • May 2001
        • 934

        #4
        oh man....

        Press F3


        Search for files over a given filesize....
        It's only been in Windows since 95.

        -Ben
        Cyberwurx Hosting
        After trying 5 different hosts, I found the best.
        Since 1997 I've had 2 hours of downtime.
        Fast support, great techs, no hype, no gimmicks.

        <- I in no way endorse whatever just got stuck on the left of my post.

        Comment

        • Claude
          Confirmed User
          • Apr 2003
          • 1036

          #5
          Originally posted by mryellow
          oh man....

          Press F3


          Search for files over a given filesize....
          It's only been in Windows since 95.

          -Ben
          I Know, that problem is that I have 42K out of appr. 50K files that needs to be deleted. A list that long simply slows that computer down so much that it´s faster to just go do it manually. I have already tried this, but thanks anyway....

          Comment

          • mryellow
            Confirmed User
            • May 2001
            • 934

            #6
            Sounds like you need more ram.

            Windows Scripting Host can probably handle it.

            Could write a perl script to do it if you have ActivePerl.

            If it's that much work I'm guessing you'd probably be better off
            waiting for your computer to display the search.

            -Ben
            Cyberwurx Hosting
            After trying 5 different hosts, I found the best.
            Since 1997 I've had 2 hours of downtime.
            Fast support, great techs, no hype, no gimmicks.

            <- I in no way endorse whatever just got stuck on the left of my post.

            Comment

            Working...