Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: don@zl2tnm.gen.nz (Don Stokes)
Subject: Re: Number of files on a disk
Date: 22 Mar 93 02:49:56 GMT	[thread overview]
Message-ID: <4521080@zl2tnm.gen.nz> (raw)
In-Reply-To: 1993Mar9.172318.221@condor

ewbankk@logica.co.uk writes:
> I am trying to find a fast?  way of finding the  number of files on a disk.
> Currently I am doing $DIRECTORY/GRAND_TOTAL/OUTPUT=filename disk:[000000...]
> and then parsing the output file to get the number of files on the disk.
> This takes a long time.

Not only is that slow, but for system disks it gives the wrong answers, 
due to the multiply entered directories.  Clustering makes it worse.  So 
does installing VAX RSX....

> Does anyone know of a  quicker way (either in  DCL or as a SYSTEM/RMS routine)
> to get this information.

Time to plug DU again.  DU, like the unix 'du' command finds out how much
disk space is used within a given directory.  It works by reading the 
index file.  To say it's faster than DIR/GRAND would be something of an
understatement....

This has been posted to vmsnet.internals a while ago, and should be on an
archive site somewhere.  I could re-post if necessary.

--
Don Stokes, ZL2TNM (DS555)                        don@zl2tnm.gen.nz (home)
Network Manager, Computing Services Centre            don@vuw.ac.nz (work)
Victoria University of Wellington, New Zealand              +64-4-495-5052


      reply	other threads:[~1993-03-22  2:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-03-09 17:23 Number of files on a disk ewbankk
1993-03-22  2:49 ` Don Stokes [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox