home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
r
/
realcount
/
!RealCount
/
!Help
< prev
next >
Wrap
Text File
|
1995-09-19
|
10KB
|
250 lines
==========================================
RealCount (1.01) - Improved Desktop Count
========= (C) Sergio Monesi 1995 =========
==========================================
RealCount provides a desktop Count facility similar to the Filer but, unlike
Filer, shows the real disc space that the counted directory uses together
with a number of other useful statistics.
RealCount can be used as a stand-alone application alongside the standard
RISC OS Count or also as a complete Count replacement.
RealCount requires RISC OS 3.10 or later (it has been fully tested on Risc PC
600 and should work on Risc PC 700 and 'big' discs) and supports interactive
Help.
RealCount is FREEWARE. See 'Conditions of use' for more info.
Index
-----
- Introduction
- Using RealCount
- Customizing the display
- Disclaimer
- Bugs and Limitations
- History
- Credits
- Conditions of use
- Contacting the Author
Introduction
------------
The standard RISC OS Count window shows only the number of files and their
total length. This is good when counting single files but when counting
directories it could be more useful to know the real disc space used by the
directory, not only the total length of the files it contains.
In fact, on E-Format discs (ie floppies, hard discs and RAM disc but not
archives, for example) a directory uses a fixed space (2048 bytes) but
because of the organisation of the disc map it usually eats up some extra
space that can be used by small files stored in it.
Moreover, because of the sectors boundaries and disc map constraints, some
extra disc space is wasted at the end of the various files (eg on a disc with
512 bytes sectors, a 513 bytes file uses 1024 bytes of disc space).
RealCount has been designed to display all these informations so that you can
know exactly how much disc space your directories use. Moreover, RealCount is
much faster than the standard Count.
If you want to know more about the E-Format map structure you can read the
file 'MapExpl' included in the RealCount distribution archive.
Using RealCount
---------------
If RealCount has been configured to replace the standard Filer's Count (see
"Configuring RealCount") you can just ignore RealCount's existence and just
use the Filer: when you choose 'Count' from the Filer's menu you will get a
RealCount window instead of a standard Filer one.
Alternatively, to count a file or a directory just drag it to the RealCount
icon on the iconbar. To count a directory you can also drag the RealCount
icon from the iconbar to a Filer window (so that, for example, you can easily
count the whole content of a disc counting its root directory).
A window, very similar to the standard Filer Count, will be opened and the
count will proceed as expected. You can pause or abort it, make it run faster
or remove the window until the count is finished using the menu: it will
behave exactly like a standard Count window.
Once the count is finished the window can be enlarged (or is automatically
enlarged, see "Configuring RealCount") and the extra statistics revealed:
- Files: this shows the number of files and their total length, as shown by
the standard Count
- Directories: this shows the number of directories and the space they uses
(ie number of directories multiplied by 2048)
- Wasted sectors: this is the disc space wasted because of unused shared map
chunks. A detailed description of the reasons of this space is beyond the
scope of this file: it seems enough to say that this space is caused by the
organisation of the disc map and can be filled only by small files.
- Sectors rounding: this is the space wasted because of sectors boundaries
and disc map constraints. This space cannot be recovered.
- Total: this is the sum of the values above and is the total space used by
the counted directory.
Beside the values in bytes there are either the percentages or the sizes in
megabytes or kilobytes. Click on them to switch between these two displays.
RealCount also works on discs that are not E-Format and on Image files
although it will just perform like a common Count (but faster).
Configuring RealCount
---------------------
The iconbar menu includes an 'Options' submenu that allows to configure the
following features:
- Replace Filer: when selected the user Filer's Count will be replaced by
RealCount.
- Auto-enlarge window: when selected the RealCount window will be
automatically enlarged when the count operation is finished (so that the
various statistics are shown). When this is not selected, a RealCount
window will look exactly like a Filer's Count one except the fact that you
can enlarge it to see the extra statistics.
- Show percentages: when selected the RealCount window will show by default
the percentages of the statistics besides their size in bytes. Otherwise
the sizes in megabytes or kilobytes are displayed.
- Install iconbar: choose whether RealCount will install itself on the
iconbar or not.
When RealCount is not installed on the iconbar you can obtain the 'iconbar'
menu (thus the 'Options' menu) from every RealCount window using the 'Shift'
key (ie if 'Shift' is depressed while you try open the window's menu, the
iconbar menu will appear instead).
Note that you cannot unselect both 'Replace Filer' and 'Install iconbar',
otherwise there will be no way to access RealCount!
Selecting 'Replace Filer' and unselecting both 'Auto-enlarge window' and
'Install iconbar' will allow you to have a Filer's Count raplacement that
will just perform faster than the original one but will also provide extra
statistics if you enlarge the Count window after the end of the count
operation.
Customizing the display
-----------------------
In the current version the only way to configure the displayed icons is to
edit the "Messages" file inside the RealCont application. Try to load it into
an editor and read the instruction at the beginning of the file.
Another way to configure the display is to edit the window defined in the
"Templates" file using a template editor. You can change the size of the
window or move the icons as you like but remember not to change the icon
numbers!
Disclaimer
----------
In normal operations RealCount is not a dangerous program since it doesn't write
anything to the disc, it just reads it.
If for any reason (either your mistake or a bug in RealCount) it causes you a
loss of data, I am sorry for you but I WILL NOT BE HELD RESPONSIBLE.
Use RealCount at your own risk.
Bugs and Limitations
--------------------
If you drag the iconbar icon to a window whose title starts with a filename
(eg. an editor window), RealCount will count it. This is probably more a
feature than a bug, though! :-)
Most of the memory used by RealCount is allocated dynamically but a small
part isn't. This means that on RISC OS 3.10 there is a limit to the number of
window open at the same time: this limit can be enlarged by changing the
WimpSlot setting in the !Run file to a value larger than the current one.
Thanks to dynamic areas this limitation doesn't apply to RISC OS 3.50 or
later.
History
-------
1.00 -- 29 Jun 95
First fully working version. Released only to a few friends.
1.01 -- 19 Sep 95
Added Filer's Count replacement. RealCount should now work on big discs (ie
disc larger than 512Mb handled by the new FileCore module).
Credits
-------
I'd like to thank the following people who contibuted in some way to the
development of RealCount:
- Nick Craig-Wood who encouraged me to write this program since he said that
it was easy to replace the Filer's Count window... I followed his
suggestions and it seems to work fine! Thanks for part of the text in this
!Help file, too.
- Martin J Ebourne for his memory allocation functions and list management
functions.
- Jason Williams (and all the other collaborators) for DeskLib.
- Martin Wuerthner for his suggestions
Conditions of use
-----------------
RealCount (the Software) is Copyright (C) Sergio Monesi 1995 (the Author) and
may not be used or copied except as in accord with the terms and conditions
below.
You may NOT Make t