home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Meeting Pearls 3
/
Meeting_Pearls_III.iso
/
Pearls
/
arc
/
Packer
/
XPackGauge
/
xPackGauge.doc
< prev
next >
Wrap
Text File
|
1995-04-22
|
3KB
|
98 lines
xPackGauge - a frontend for the XPK libraries
(written by Daniel Balster in February 1994)
> WHAT IS IT ?
xPackGauge is a CLI command that is able to pack/unpack files
using the XPK libraries. if you don't know what XPK is, stop here
and inform yourself about it.
xPackGauge was mainly written to perfectly fit into DirectoryOpus (4.xx)
from InovaTronics. It's easy to install it to a button and all your
packing-jobs are quite easy now!
You can invoke it from a shell; never do this. Use xPack or any
other tool like that instead! xPackGauge should only be used within
DirOpus.
> READ THIS, TOO
aerh, unfortunately the source of this tool has gone to NIL: or so.
i wrote this tool more than a year ago and spreaded it arround to
some friends. since then the tool is in heavy use and noone would
miss it. they always boggled me to change the layout/design of this
helpful tool and implement a better error handling; i never did it,
i couldn't find the source... (and it's to boring to rewrite it
before there really is a need to do that)
-> if you think there is a need then contact me (drop me a mail)
and tell me - i might spent some time to it again ;-)
> ERROR-HANDLING AND AVOIDING
luckily, i experienced NEVER a really bad error. the program uses
safe-packing and safe-unpacking, that means a file named TEST will
be (un)packed to TEST.tmp and after that TEST will be deleted and
then TEST.tmp will be renamed to TEST.tmp.
if the filename of TEST is longer than 160 characters it could be
that the .tmp file couldn't be created! important: make sure that
TEST has the D protection flag set; else TEST couldn't be deleted
and TEST.tmp couldn't be renamed and so on. be warned!
(of course xPackGauge could set the +D flag before, but for that
i need my source... grrr)
rule: never pack longnamed, non-deletable files ;-)
> INSTALLATION
- copy xPackGauge somewhere to your path, i.e. C:
(i myself hold it in DOPUS:C/xPackGauge)
- Start DirectoryOpus and go into the Configuration Manager.
You now have to add custom buttons. Read the manual to know
how to manage this!
NAME TYPE ENTRY
xunpack (AmigaDOS) xPackGauge FILE {f}
xpkNUKE (AmigaDOS) xPackGauge FILE {f} METHOD NUKE MODE 100 PACK SKIP
xpkSQSH (AmigaDOS) xPackGauge FILE {f} METHOD SQSH MODE 100 PACK SKIP
. . .
. . .
. . .
.. and so on, i think you got it.
xPackGauge has the following command line options:
"FILE,METHOD,PASSWORD,MODE,PUBSCREEN,PACK/S,SKIP/S"
FILE the filename of the file to be packed/unpacked.
METHOD 4-Character XPK ID (case sensitive)
PASSWORD a password string (if supported by the packer)
MODE packer rate in percent: could be 0..100
PACK this tells xPackGauge it should pack the data
(default is unpacking)
SKIP if the ratio is less than 5% then packing will
be aborted and nothing will be packed. important!
PUBSCREEN default is the Workbench screen, enter DOPUS.1 or
so if you like.
> LAST
i hope this is enough information to you. tell me if not (i wrote this
little intro in about 10 minutes)
some notes: sorry for the hardcoded topaz/8 and the useless progress data
below the gauge...
a new version would take a day or so - but i have not the time, yet.