* Number of files on a disk
@ 1993-03-09 17:23 ewbankk
1993-03-22 2:49 ` Don Stokes
0 siblings, 1 reply; 2+ messages in thread
From: ewbankk @ 1993-03-09 17:23 UTC (permalink / raw)
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.
Does anyone know of a quicker way (either in DCL or as a SYSTEM/RMS routine)
to get this information.
Thanks in advance--
+---------------------------------------------------------+
Kit Ewbank
Logica Defence & Civil Government / Logica International
E-mail: EWBANKK@logica.co.uk
+---------------------------------------------------------+
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Number of files on a disk
1993-03-09 17:23 Number of files on a disk ewbankk
@ 1993-03-22 2:49 ` Don Stokes
0 siblings, 0 replies; 2+ messages in thread
From: Don Stokes @ 1993-03-22 2:49 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1993-03-22 2:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-03-09 17:23 Number of files on a disk ewbankk
1993-03-22 2:49 ` Don Stokes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox