Re: show drive space used?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Al,

I could, which is what I think Rolf did, but I already made a big start on
doing it with dir_walk (or walk_dir, whichever it is).  It works ok with
each directory, my problem was with summing them to get to the actual whole
drive space used; turns out I didn't take into account the space used to
*hold* each directory's data, (one or more clusters each), and a cluster or
more for the drive itself to hold directory info.

Any idea how I could know how many clusters are used per directory & per
drive for file/dir data?

Dan Moyer

----- Original Message -----
From: "Al Getz" <Xaxo at aol.com>
To: <EUforum at topica.com>
Sent: Sunday, August 24, 2003 3:44 AM
Subject: RE: show drive space used?


>
>
> Dan Moyer wrote:
> >
> >
> > Hi Rolf,
> >
> > Thanks, that's a very interesting program.   I couldn't figure out what
> > "rotator" was for until I ran it on c: drive :)  cute!
> >
> > But not really what I wanted...I need to clean my drive up so it's not
> > filled, so I wanted to see what was taking up how much space, per
> > directory
> > (with a program, not by hand, looking at each dir, one after another).
> > I
> > made a program once that walked the directory tree, and I checked the
> > results by right click on a folder as you also suggested, and it worked
> > fine
> > as I remember, *except* when I tried to apply it to a *drive* rather
> > than
> > just a directory; if I applied it to any directory, it gave correct
> > results,
> > but something (I don't remember what exactly) went wrong if I gave it a
> > drive to walk through.  I think it reported wrong sum of total space
> > used on
> > the drive, and may have also reported wrong values for some directories
> > (only when applied to a drive, worked ok when applied just to a
> > directory).
> > I also think I had it put the space used into a tree of the directories
> > &
> > sub-directories, sorted by biggest first.  Too bad it didn't work
> > completely.  Maybe I'll dust it off & see if I can figure what went
> > wrong.
> >
> > Dan Moyer
> >
> > ----- Original Message -----
> > From: <rolf at rschr.de>
> > To: "EUforum" <EUforum at topica.com>
> > Sent: Saturday, August 23, 2003 12:50 AM
> > Subject: Re: show drive space used?
> >
> >
> > > Hi Dan
> > >
> > > do you mean this kind of program?
> > >
> > > Have a nice day, Rolf
> > >
> > > ps: right clicking on a DIR under the Win explorer will also show you
> > > the content of the DIR and sub dirs.
> > >
> > >
> > > TOPICA - Start your own email discussion group. FREE!
> > >
> >
> Hi there Dan,
>
> Can you just go through all the directories, adding up all
> the byte counts returned from each file using dir() ?
>
>
> Take care for now,
> Al
>
>
>
> TOPICA - Start your own email discussion group. FREE!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu