GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Software to delete all files above a certain size in several subfolders (https://gfy.com/showthread.php?t=206683)

Claude 12-09-2003 09:36 PM

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 12-09-2003 09:40 PM

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 :Graucho

Claude 12-09-2003 09:44 PM

Quote:

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 :Graucho

Just wired $243 to you. :)

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

mryellow 12-09-2003 09:47 PM

oh man....

Press F3


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

-Ben

Claude 12-09-2003 09:51 PM

Quote:

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....

mryellow 12-10-2003 09:27 PM

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


All times are GMT -7. The time now is 07:59 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123