home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 2: PC
/
frozenfish_august_1995.bin
/
bbs
/
d07xx
/
d0741.lha
/
Sizer
/
Sizer.doc
< prev
next >
Wrap
Text File
|
1992-10-11
|
7KB
|
182 lines
S I Z E R D O C
GΘrard CORNU
;-)
(version 0.20 , September 4th 1992)
Sizer is ⌐1992 GΘrard Cornu, but freely redistributable. When
re-distributing don't forget to include this unmodified doc file.
And don't charge more tan the cost of an AmigaLib disk from
Fred FISH.
This program cannot be used for commercial purposes, or included
on magasine's cover disks without the written permission of the author.
Fred Fish is obviously allowed to include it in its one and only
AmigaLibDisk library.
What is sizer ?
~~~~~~~~~~~~~~~
Sizer is a quick and small CLI utility for getting the size of
any devices, directories or files. It accepts any number
of arguments. (Well, it's supposed to!)
I have been using it in 2.04 only but it doesn't use (as yet...)
any 2.04 features, so this beta version should also work in 1.3.
How to use it?
~~~~~~~~~~~~~~
As I said earlier it's a CLI (Shell) thingy.
The format is:
sizer [-n] {< device | directory | file >}
The -n option is for no display of the filenames being sized.
This gives much faster results.
examples:
sizer dh0:
sizer -n MyDirectory
sizer tools/mytooldir
sizer ram: sys:c another_file another_device: etc...
Don't use the '/' at the end of a directory name, but on the
other hand, you MUST use ':' at the end of a device or assigned
directory.
It is best used with a directory utility. Even better with one
which accepts multiple arguments. 'Pity DirWork don't, at least
not in version 1.51, the one I currently use. SID 2.0 very probably
has already got such a thing, with the 'bytes' button.
I shall give you the settings I have used to configure it with
DirWork 1.51:
- Go in the configuration editor (1st top left menu).
- Click on an unused button (in the top bank).
- and fill the following boxes:
Button text: Size (or whatever name you fancy!)
Function: u (lower case)
Selection: B (Upper case)
SpecialOp: , (comma)
Option: p (lower case)
Arguments: (full path and name for sizer, plus -n if you
want more speed.
Dont use 'Run >NIL:' or even 'Run' on its own)
- Click on 'Quit and use'
- Once back to DirWork, save the new configuration.
- That's it!
- Now pick any dir or file in one of the file lists, then click
on the 'Size' button. A window should open and 'sizer' will
list all the files it is 'sizing' and then display something
like this:
Total number of files 17
Total number of directories 1
Total number of bytes in files 101108
Total number of blocks used 207
Total occupied: 105984 bytes, 103K
I wont explain the 1st line, for the second one, it includes the
directory(ies) you asked to be sized as well as all the sub-
directories and sub-sub-sub... directories if any.
The 3rd line tells you the total number of bytes of all the files
and the 4th the total number of blocks all the files, directories,
subdirectories, sub-sub...directories occupy on their respective
device.
Suppose you have 'sized' a directory containing 10 files with
a size of 256 bytes each. The 3rd line will tell you 2560 bytes,
but the 4th might say 10 blocks (plus the blocks used by the
direcory itself). Suppose the device on which those files are
kept have a block size of 512 bytes, the total occupied
will be 5120 bytes ( plus the ones used by the directory).
For each item it scans, 'sizer' looks at the block size of the
containing device and calculate the occupied size accordingly.
BTW, using sizer, I discovered that the block size of the Ram:
device is actually 1024 bytes (with KickStart 37.175). Most other
devices, hard disks, floppies have a block size of 512 bytes, but
I heard (read!?) one might be able to change the block size with
the new FastFileSystem......?!?!
Credits!
~~~~~~~~
This little utility was written with GREAT help from an article by
Paul OVERAA published by Amiga Format in the december 1990 issue,
page 209+.
It was written for myself, to help me file all the stuff I got
from the great Peter MILES ñ , and also for
\_________/ v
^ ;-) |
|____________________|
ñ ICPUG Amiga library organiser.
ICPUG is the one and only Independent Commodore Products Users Group.
To become a member of this brilliant club contact:
Jack COHEN, ICPUG Membership secretary, P.O. Box 1309,
LONDON, N3 2UT, (England), EUROPE.
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| Send any bug report, compliment ;-), chocolates, freely distributable |
| software, 1Gb hard disks, A3 48 bits colour scanners, brand new |
| AMIGA 4000, etc... |
| |
| OR SIMPLY A POST CARD! to: |
| |
| GΘrard CORNU |
| 11 avenue Edouard Aynard |
| 69130 ECULLY |
| |
| FRANCE |
| |
| |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Have a nice day!