:::RHMT::: Real Home Made Turbo
General Category => General Discussion => Topic started by: BoostedSchemes on October 23, 2009, 09:11:20 PM
-
Need to removed all the folders from f:\MP3 that have <2mb in them... manual = impossible, 15,000+ folders :-\
any pos free software to do this for me or suggestions on a batch file? fucking hate windows 7 for being so sweet yet not allowing folder attribute sort...
-
I know it's possible, just not sure what program to use.
If nobody here knows, ask here
http://slickdeals.net/forums/forumdisplay.php?f=17 (http://slickdeals.net/forums/forumdisplay.php?f=17)
-
there was a windows browser which was an alternative to windows explorer i used it before.. been looking for it but i cant find it..
it had a million ways to sort folders.. last accessed.. number of files.. size of files.. etc etc etc
-
sort files by size
jump to the middle where the split is
delete the whole lot
FAIL
-
i can write something in vb for it but we live in an age where coding your own is much harder than requesting a link to someone who has already done it
-
Sort by size, delete in batches.
-
How are you going to sort folders by size?
-
http://www.se-soft.com/ (http://www.se-soft.com/)
-
looks like buk wins :D
-
looks like buk wins :D
this isnt the same one i used but the point is almost any windows explorer alternative works great..
this one is gay and wont let you delete more than one folder at a time and you cant even select more than one folder at a time nor can you drag and drop folders into one another to delete them once they are in one folder..
gay gay gay
im trying to find the other one but yeah i installed this one and used it before i posted it
-
if im not mistaken, windows 7 includes the power shell. the powershell has options that are basically like linux.
so.... way beyond your ability homie.
-
thats cute i have a laptop strictly for faggot worthless midget usage thats been linux only for about 5 years
its a piece of shit but the latest os to grace it has been bt4 and i used it for obvious reasons
when i actually want a computer, i use windows you jabroni fuck
-
when i actually want a computer, i use windows you jabroni fuck
lol
-
so i assume you know how to use the power shell. why are you asking simple questions again since you are such a leet haxor to use bt4?
-
i can write something in vb for it but we live in an age where coding your own is much harder than requesting a link to someone who has already done it
Oh man, today I wrote like 700 lines of code and I can't disagree with you lol
-
so i assume you know how to use the power shell. why are you asking simple questions again since you are such a leet haxor to use bt4?
because im not a fucking midget you fucking dwarf fuck
-
In this thread buk bends over backwards to lick Yuriy's nuts, and Yuriy doesn't so much as acknowledge him.
Classic.
-
in this thread dwarves further show us why they live in deep underground mines and reproduce through mitosis
-
in this thread dwarves further show us why they live in deep underground mines and reproduce through mitosis
thats pretty fucking weird.
-
In this thread buk bends over backwards to lick Yuriy's nuts, and Yuriy doesn't so much as acknowledge him.
Classic.
in this thread jd rides the fence to stay cool on the internet because noone cares about his bullshit off of the internet
-
i'll write a prog to do this if you can wait abnout 30 mins
-
uhh remember deleting files is semi permanent.
this is not recursive, only top level directories.
http://www.realhomemadeturbo.com/johnny/WindowsFormsApplication1.zip (http://www.realhomemadeturbo.com/johnny/WindowsFormsApplication1.zip)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
private int deldircount = 0;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
try
{
double directorySize = 0.00;
directorySize = getAllDirs(txtDir.Text);
txtDir.Text = "Deleted Directories: " + deldircount;
}
catch (Exception ex)
{
txtDir.Text = ex.Message;
}
finally
{
}
}
private void deleteDir(string dir)
{
Directory.Delete(dir, true);
deldircount += 1;
}
private double getAllDirs(string dir)
{
double size = 0.00;
foreach (string d in Directory.GetDirectories(dir))
{
double dirsize = 0.00;
DirectoryInfo di = new DirectoryInfo(d);
//dirsize += this.getAllDirs(d);
dirsize += this.getDirSize(di.FullName);
if (dirsize < Convert.ToDouble(txtFileSize.Text))
{
this.deleteDir(di.FullName);
}
}
return size;
}
private double getDirSize(string dir)
{
double size = 0.00;
foreach (FileInfo f in new DirectoryInfo(dir).GetFiles())
{
size += f.Length;
}
return size;
}
}
}
-
btw the size is in bytes
-
Is that written in C++?
Not a coder by any means but the structure looks familiar to what I worked with in the one programming class I had to take.
Just curious.
-
In this thread buk accuses me of straddling a fence just because I don't find anything in the thread interesting enough to comment on, and furthermore I don't care about his and Yuriy's lover spat.
Then he deletes his account.
-
Is that written in C++?
Not a coder by any means but the structure looks familiar to what I worked with in the one programming class I had to take.
Just curious.
Visual studio / C#
-
ya its c#
i figured a windows form would be easiest to use