home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
400-499
/
ff412.lzh
/
JPDirUtil
/
JPDirUtil.doc
< prev
next >
Wrap
Text File
|
1990-12-14
|
11KB
|
321 lines
*****************************************************************************
JPDirUtil v1.2
(c) Copyright 1989 by Jonathan Potter
*****************************************************************************
INTRODUCTION
------------
JPDirUtil lets you access the more frequently used CLI commands from an
Intuition environment.
To choose file(s) or directory to operate upon, click on the name in
the file window. You may scroll up and down the file window using the
slider gadget. The three string gadgets are
S - Source directory. To choose files from a new directory,
you may enter that directory's name here. DO NOT enter
any filenames here.
D - Destination directory. This contains the complete pathname
of the destination. DO NOT enter any filenames here either.
E - Execute string. This string is passed to any file you RUN.
This also contains the destination filename for CLONE, RENAME, etc.
To open a new directory, double-click on the directory name.
GADGETS
-------
** Note : Any operation involving more than one file may be aborted
when in process by pressing the right mouse button.
** Note : "destination" below refers to the destination directory as
that entered in the D gadget, and the destination filename
as that entered in the E gadget.
** Note : If "Are you sure?" checking is enabled, you are asked for
confirmation before most operations are carried out.
DF0:, DF1:, DF2:, DF3:, DH0:, DH1:, RAM:, RAD:, VD0:, VDK:, SYS:, C:
These gadgets provide an easy way to set the source directory to one
of the more commonly used devices. Any device names not appearing here
will have to be entered by hand in the S gadget.
Clicking on the D string gadget and then one of these enters the
device name as the destination directory. These gadgets may be
customised in the Setup file (see below).
SWAP
This gadget swaps the source and destination directories around.
ALL
This gadget either selects or unselects every file in the list.
PARENT
This gadget moves the source directory back to the parent of the current
source directory.
ROOT
This gadget moves the source directory back to the root of the current
source directory.
SBYTE
Shows the number of bytes available, free and used on the source device.
DBYTE
Shows the number of bytes available, free and used on the destination
device.
BYTE
Displays the sum of the lengths of all the selected files, in bytes.
BLOCK
Displays the sum of the lengths of all the selected files, in blocks.
DELDIR
This gadget allows you to delete the currently selected directory, and
all files/subdirectories that it contains.
MAKEDIR
Allows you to create a directory. When selected, a string requester
will open. To cancel the operation, press return to a blank string,
or enter the name of the directory to wish to create.
DELETE
Attempts to delete the selected file(s).
RUN
Attempts to run the FIRST selected file in the list. Parameters may
be passed by entering them in the E gadget.
RENAME
Attempts to rename the FIRST selected file as the name entered in the E
string gadget. The destination directory is the same as the source, ie
the string in the D gadget is ignored.
MOVE
Attempts to move all selected files into the destination directory in
the D string gadget. MOVE will not move from one disk to another. The
string in the E gadget is ignored.
CLONE
Attempts to clone the FIRST selected file, renaming the clone as the
name entered in the E string gadget. The destination directory is the
same as the source, ie the string in the D gadget is ignored.
COPY
Attempts to copy all selected file(s) to the destination directory.
You cannot copy whole directories. The string in the E gadget is
ignored.
TYPE
This gadget allows you to view the selected files in the list as
standard ASCII.
HTYPE
This gadget allows you to view the selected files in the list as
hex dumps.
PRINT
The same as TYPE, except that the file will be sent to PRT: (printer)
as well as the screen.
HPRINT
The same as HTYPE, except that the file will be sent to PRT: (printer)
as well as the screen.
SHOW
Attempt to show all selected files as IFF pictures. Will display all
types of IFF pictures. To close the picture once it is displayed, click
the left mouse button. To close and abort any further picture showing,
click the right mouse button.
EDIT
Attempt to edit the FIRST selected file with a text editor. The name
of the text editor defaults to "c:editor" but you may change this in
the SetUp file (see below).
ICON
Allows you to attach an icon to ALL selected entries. When selected,
a requester appears prompting you for the type of icon, either
DRAWER (for a directory), TOOL (for an executable program), or
PROJECT (for a text file, picture, etc..). Choose the type of icon,
or CANCEL to cancel.
NEWCLI
Open a new interactive CLI window on the Workbench screen.
COMMENT
Attach a comment to the FIRST selected entry. When selected, a string
requester appears. To cancel, press return on a blank string, or enter
the comment desired.
PROTECT
This gadget allows you to set the protection bits on the selected
file(s) and directory. When selected, a string requester appears.
Enter the desired protection bits, and press return. The bits allowed
are "sparwed".
SEECOMM
Allows you to see the comment attached to the FIRST selected entry.
SEEPROT
Allows you to see the protection bits of the FIRST selected entry.
CUSTOM GADGETS
The last 16 gadgets are available for customisation. See the SETUP section
below for information on how to do this.
When a customised gadget is chosen, the command sent is built from the
gadget text, the string (if any) in the execute buffer, and the names of
any selected files, in that order.
For example, if the gadget text was "ZOO a", and you wished to zoo
together some files, you would select the files you wish to zoo (by
clicking on their names), enter the name of the .zoo file in the execute
buffer, and choose "ZOO a".
ICONIFY
-------
You may iconify JPDirUtil to a small window on the Workbench screen,
and then recall it when you desire. This window can also be a title-bar clock
(see below).
To iconify JPDirUtil, click on the ICON gadget in the title bar of the
JPDirUtil screen. To start JPDirUtil up in the iconified mode, enter from
the CLI
[RUN] JPDirUtil -i
SETUP
-----
JPDirUtil allows you to configure the SetUp of the program in a small way.
To do this, the file "JPDirUtil.SetUp" must be present in either the current
directory or the S: directory. The SetUp file looks like this :
Command Default
------- -------
SORT = <bool> 1
EDITOR = <string> c:Editor
CLOCK = <bool> 1
SDIR = <string> RAM:
DDIR = <string> SYS:
EXEC = <string>
COL0 = <hex> 00E
COL1 = <hex> FFF
COL2 = <hex> 002
COL3 = <hex> F00
ICONX = <dec> 100
ICONY = <dec> 0
CHECK = <bool> 0
GADGET <dec> = <string>
DRIVE <dec> = <string>
All of these items are optional, and may appear in any order. Case is not
important, but the " = " must be as it is above.
All <bool> values are either 1 or 0. 1 is on and 0 is off.
<string> values may not contain any spaces.
<hex> refers to a hexadecimal number, with no leading 0x or $, etc..
<dec> refers to a decimal number.
SORT allows you to turn sorting of directories on or off.
EDITOR allows you to select the name of the editor you wish to use with
the EDIT gadget.
CLOCK allows you to select whether the iconified window is a title
bar clock or not.
SDIR allows you to select the initial Source directory.
DDIR allows you to select the initial Destination directory.
EXEC allows you to select the initial Execute string.
COL0 \
COL1 \
COL2 \
COL3 allows you to select the colour in that colour register.
ICONX allows you to select the X position of the iconified window.
ICONY allows you to select the Y position of the iconified window.
CHECK allows you to turn the "Are you sure?" requester on or off.
GADGET allows you to specify the text for a custom gadget; <dec> is a value
from one to sixteen, and <string> is the gadget text.
The <string> value in this instance MAY contain spaces, but may not
be more than 80 characters long.
DRIVE allows you to specify the text for the 12 drive gadgets; <dec> is a
value from one to twelve, and <string> is the drive text.
An example SetUp file is:
SORT = 1
EDITOR = c:CygnusEd
CLOCK = 0
SDIR = RAM:
DDIR = SYS:
COL0 = f00
COL1 = 0f0
COL2 = 00f
COL3 = 000
ICONX = 0
ICONY = 0
CHECK = 1
GADGET 1 = ARC a
GADGET 2 = ZOO a
GADGET 3 = ARC x
GADGET 4 = ZOO x
DRIVE 5 = JH0:
THE END
-------
JPDirUtil is freely redistributable, but it is NOT public domain. The
author retains all rights. It may NOT be sold for profit, or included on
any commercial product without prior permission from the author.
I hope JPDirUtil becomes a useful addition to your software library.
Send any bug reports, praise, criticism, **Job Offers**, and spare cash
to:
Jonathan Potter
P.O. Box 289
Goodwood, 5034
South Australia
Australia
phone : (08) 2932788