home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SDN¹ Plus
/
SDN1_.cdr
/
sdn
/
util1
/
cedar100.sdn
/
CEDAR.DOC
< prev
next >
Wrap
Text File
|
1989-07-25
|
23KB
|
559 lines
C E D A R 1 . 0 0 / 2 . 0 0
Users Guide
Copywrite (c) 1989 by Fred Van Andel
All rights reserved.
Fred Van Andel
414 Richmond st.
New Westminster B.C.
Canada
V3L 4C2
1.0 What is CEDAR.
CEDAR is a directory program with a difference. The most important
advantage that CEDAR has over other directory programs is that it will
allow you to list your files in color. You can choose what color you want
each type of file displayed in based on the file extension (assuming you
have a color monitor). As well CEDAR will list your files in 1, 2, 4 or 6
columns, and it will sort your files by almost anything.
For example, you can have all .COM, .EXE, and .BAT files shown in red,
while all .DOC and .TXT files are green, all your subdirectories are in
magenta, and all other files are white. You can set up to 200 different
file extension/color pairs (20 in the Shareware version) at a time and
change them easily. In addition CEDAR is configurable, you can set the
sort and display parameters at the same time as the colors. Whenever you
run CEDAR it will always list the files the way you want it to.
2.0 Registration.
There are two versions of CEDAR. The Shareware version and the registered
version. The Shareware version has a version number of 1.XX, the
registered version has a version number of 2.XX.
The Shareware version (1.XX) of these programs and documentation are
copywrite and have been released to the public as Shareware.
THESE ARE NOT PUBLIC DOMAIN OR FREE PROGRAMS.
Anyone may use this program on a trial basis for 30 days without
obligation. If you find this program useful and continue to use it you are
expected to register your copy. All government, commercial and business
users of this program are required to register their copy.
2.1 Why Register?
If you register you will get:
A disk containing the latest registered version of CEDAR (Version 2.00
or above).
The registered version of these programs and documentation are similar
except they have more options (see section 3.2.X on command line
switches for more details). As well the registered version can set
200 color combinations instead of 20. The Shareware version of CEDAR
is NOT Crippleware. It is both functional and useful. I just want
to give people a reason to register their copy.
All registered users will receive notification of major revisions and
will be able to upgrade at nominal cost.
A sense of pride and ownership, in having honestly participated in the
Shareware revolution.
You help to keep software prices down, by supporting a distribution
method which doesn't rely on expensive advertising campaigns.
To register please fill out the registration form at the end of this file
or run CEDAR with the /f option and send it and the registration fee to
Fred Van Andel.
The survival of the Shareware method of distribution depends on people
registering their programs.
The Shareware version (1.XX) of these programs and documentation files may
be freely copied and distributed by any individual, or nonprofit
organization, under the following conditions.
CEDAR and any associated files may NOT be distributed as part of any
other Shareware, public domain or commercial package except with prior
written approval from Fred Van Andel.
Shareware distributors and user groups may distribute this package as
part of a disk library if the fee charged is less than $5.00 per disk.
Please write and inform me if you do so.
All program and documentation files must be distributed together and may
not be modified in any way.
Commercial use of the Shareware (1.XX) version is prohibited, you must
register your copy in order to use it for business.
The Registered version (2.XX) of CEDAR and all associated files may not be
distributed in any form except by Fred Van Andel or its designated agents.
The Registered version (2.XX) of CEDAR must be treated like a book, you can
make backup copies as long as the same registered copy of CEDAR cannot be
used by more than one computer at the same time.
DISCLAIMER
THIS SOFTWARE AND MANUAL IS SOLD "AS IS" AND WITHOUT WARRANTIES AS TO
PERFORMANCE OR SUITABILITY OR ANY OTHER WARRANTIES WHETHER EXPRESS OR
IMPLIED. IN NO EVENT SHALL FRED VAN ANDEL BE HELD LIABLE FOR ANY LOSS OF
PROFIT OR ANY DAMAGES RESULTING FROM THE USE OR MISUSE OF THIS PRODUCT,
EVEN IF FRED VAN ANDEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
THE USE OF THIS PROGRAM(S) CONSTITUTES AGREEMENT AND ACCEPTANCE OF THESE
CONDITIONS.
3.0 Running CEDAR.
In its simplest form CEDAR is run from the DOS prompt by typing its name
followed by a return. If you have not changed any of the defaults:
CEDAR
will give you a listing similar to this one.
CEDAR 2.00 Registered Version Copyright (c) 1989 by F Van Andel /? for Help
Path: C:\MISC Filespec: *.*
───────────────────┬───────────────────┬───────────────────┬───────────────────
. <DIR> │BIG .TXT 1.2M│COMMAND .COM 25308│README .DOC 1024
.. <DIR> │CEDAR .C 23664│FIND .EXE 6403│XCOPY .EXE 11216
JUNK <DIR> │CEDAR .CTL 3320│FORMAT .COM 11671│
ANSI .SYS 1647│CEDAR .DOC 19545│LABEL .COM 2346│
BEEP .COM 7│CEDAR .H 243│MISC .DOC 169378│
───────────────────┴───────────────────┴───────────────────┴───────────────────
17 Files using 1.5M Bytes. 475136 Bytes free.
This is a 4 column listing of all files in the directory showing filename,
extension and size sorted by type, name and extension. At the bottom it
will show how many files are listed, the total size of the listed files
and how much free disk space is available. What you can't see is the
color, you will just have to run it yourself for that.
Please note that if the file sizes or the totals exceeds 1 million bytes
then the size will be displayed in megabytes. For example: 1.5M Bytes.
3.1 Filespec.
If all you want to see is the .EXE and the .COM files then you use the
command:
CEDAR *.exe *.com
Unlike the DIR command in DOS you can give more than one filespec on the
command line. You can even run CEDAR across directories and drives. For
example:
CEDAR *.* a:*.doc b:*.doc
will give you a list of all the files on your current directory and all
the .DOC files on your a: and b: drives. Note however the amount of free
disk space reported will be that of your b: drive. You can have up to 9
different pathnames.
Please note that the directories . and .. will be listed more than once if
your filespec allows it. The . and .. directories can be suppressed, see
section 3.2.3.
3.2 Switches.
Command line switches are supported by using the backslash character (/).
For example, to use a 2 column format and sort by file size you would use
the command:
CEDAR /2 /s
or
CEDAR /2s
Using command line switches it is possible to control how CEDAR runs.
There are 4 basic groups of switches, those that control sorting, those
that control how the files are displayed, those that control how the files
are output, and those that control other things.
Some switches allow the use of a minus sign (-) after them to allow for
the canceling of a switch or to reverse the order. See the descriptions
for /n, /e, /s, /t, /d. /y, /o, /c, /u, /p, and /i for more information.
3.2.1 Display Switches.
The directory can be listed in either 1, 2, 4 or 6 columns. The switches
are:
/1 1 column. Displays the directory in a single column similar to DOS
DIR. The files name, extension, size, time and date are shown.
/2 2 column. Displays the directory in 2 columns. The same information
as /1 is shown except it is 2 columns side by side.
/4 4 column. Displays filename, extension and size in 4 columns.
/6 6 column. Displays filename and extension only in 6 columns, similar
to DOS DIR /w command.
/h Horizontal. Displays the files across instead of down. This option
is not available in the Shareware version. Please register your copy.
/v Vertical. Displays the files down instead of across. This option is
not available in the Shareware version. Please register your copy.
3.2.2 Sort Switches.
The directory can be sorted almost any order you want.
In general by following a switch by a minus sign then the sorting will be
in reverse order. For example:
CEDAR \s-
will sort the files from smallest to largest instead of largest to
smallest.
/n sort by file Name. Files are sorted in ASCII order, punctuation
before numbers before letters. /n- sorts in the reverse order.
/e sort by file Extension. Extensions are sorted in ASCII order,
punctuation before numbers before letters. /e- sorts in the reverse
order.
/s sort by Size. Larger files are listed before smaller files.
Directories (which have zero size) are last. /s- sorts from smallest
to largest. This option is not available in the Shareware version.
Please register your copy to get this feature.
/t sort by Time. Older files are listed first. /t- sorts from newest to
oldest. This option is not available in the Shareware version.
Please register your copy to get this feature.
/d sort by Date. Older files are listed first. /s- sorts from newest to
oldest. This option is not available in the Shareware version.
Please register your copy to get this feature.
/y sort by tYpe. Directories will be listed before regular files. /y-
will list directories last.
/o sorted by Order. Files will be sorted according to the order that
they appear in the CEDAR.CTL file. See section 4.0 on Configuration
for more details. /o- will sort files in the opposite order. This
option is not available in the Shareware version. Please register
your copy to get this feature.
/c sort by Color. Files will be sorted according to there color number.
See section 4.0 on configuration for more information on colors. /c-
will sort in the opposite order. This option is not available in the
Shareware version. Please register your copy to get this feature.
/u Unsorted, do not sort the files but display them as they are on the
disk. If this option is used any other sort option on the command
line such as /n or /t will be ignored. /u- will cancel the /u
command. This is for when there is a /u set by the configuration file
and you want to cancel it. Using /u- will allow other sort switches
such as /n and /t to be processed.
Note: It is possible to sort on an item that is not displayed, for
example:
CEDAR \t4 *.exe
will sort by time, but the file time is not displayed in the 4
column format.
3.2.3 Control Switches.
These switches control various aspects of how CEDAR works.
/? Help. A short summary of all the switches.
/r or
/r [filename]
Reset. This will reset or configure CEDAR to use new colors and set
new defaults. If [filename] not is given then the file CEDAR.CTL will
be used. See section 4.0 on configuration for more details.
/p Pause. This will display a screen full (24 lines) and ask you to hit
a key before continuing. /p- will turn pausing off, this is for when
there is a /p set by the configuration file and you want to cancel it.
/f Form. This will display a registration form after to the screen,
printer or a file called REGISTER.FRM after prompting you for your
choice.
/i Ignore. This will suppress the listing of the . and .. directories.
/i- will display the . and .. directories, for when there is a /i set
by the configuration file and you want to cancel it. This option is
not available in the Shareware version. Please register your copy to
get this feature.
3.2.4 Output Switches
Output switches control how the listing is displayed.
/b Bios. This causes CEDAR to use the BIOS to write to the screen. This
method allows colors to be displayed but does not support redirection.
This is the default mode. If no output switches are specified in the
configuration file or on the command line this is the mode that will
be used. This switch is not available in the Shareware version.
Please register your copy to get this feature.
/x DOS. This mode uses DOS to write to the screen. It does not allow
color but it does allow redirection. For example:
CEDAR /x2 *.doc *.txt > test.dir
will write the directory to the file test.dir.
CEDAR /x >prn
will send the directory to the printer.
Please note that if you use the pause (/p) option while redirecting
the output the prompt to hit a key will also be redirected and will
not appear on the screen. I am sorry that /x doesn't sound like
anything but I ran out of appropriate letters. This option is not
available in the Shareware version. Please register your copy to get
this feature.
/a Ansi. This mode uses the ANSI.SYS driver to display the directory.
This mode is redirectable and it also allows color. However it is
slow. If you redirect this mode to the printer or a file you will get
a lot of extra characters between the columns. You can redirect this
mode over a modem and receive color on the other side, or you can
redirect to a file and when you TYPE that file you will see color.
The ANSI.SYS driver must be loaded for this to work. Ie. You must
have a line in your CONFIG.SYS file that says:
device=[path]ansi.sys
If the ANSI.SYS driver is not present then you will get a lot of extra
characters between the columns and no color.
4.0 Configuration
Configuration is the most important and powerful feature of CEDAR. It
allows you to set up the file extension and color combinations the way you
want them as well as set up the default switches.
When you use the Reset default switch (/r) CEDAR will read from the
configuration file and modify itself based on what the file contains. The
command is as follows:
CEDAR /r c:\utilities\default.cfg
If no filename is given then CEDAR will use the file CEDAR.CFG. If CEDAR
cannot find this file the program will abort.
The format for the configuration file is simple.
To set the file extension/color combinations you list the file extension
including the period, followed by the number for the color. For Example:
.exe 12 ; light red on black
.com 12
.bat 12
.doc 13 ; light magenta on black
.txt 13
This will set up cedar so that .exe, .com, and .bat files are displayed in
color 12 (Light red letters on a black background) and all .doc and .txt
files are displayed in color 13 (Light Magenta on Black). In the
registered version you can set to 200 file extension, color combinations.
In the Shareware release you can set up to 20.
Everything after a semicolon (;) on a line is a comment and will be
ignored.
The number representing the color is the standard color attributes for a
CGA display. If you have a different type of display the colors might be
different depending on how it has been set up.
The standard colors are:
COLOR FOREGROUND BACKGROUND
----- ---------- ----------
Black 0 0
Blue 1 16
Green 2 32
Cyan 3 48
Red 4 64
Magenta 5 80
Brown 6 96
White 7 112
Grey 8
Light Blue 9
Light Green 10
Light Cyan 11
Light Red 12
Light Magenta 13
Yellow 14
Bright White 15
To Get the desired foreground, background colors add the two numbers
together. For example the number for white letters on a blue background
is 7 (White) + 16 (Blue) = 23 (White on Blue). If you then add 128 to
this number the colors will flash on and off.
In the ansi mode (/a) not all colors are possible. Only the first 8
foreground colors are allowed. Any color after white will be displayed as
that color number minus 8.
On a monochrome monitor color is rather meaningless. Instead of
displaying color you might get underlining. Use the DOS switch (/x)
instead of the BIOS switch (/b) or edit the CEDAR.CTL to change the colors
to something more appropriate.
If you run the program SEECOLOR.EXE it will display a table of all the
color combinations and you can clearly see what they look like.
There are some special file extension rules. Directories are specified by
<dir>. The default color is specified by #def. This color is used for
files that don't match any specified extension as well as the titles,
borders, and footers. For Example:
<dir> 27 ; Will display directories in color 27.
#def 33 ; Will display the title borders, footers and
; unknown file types in color 33.
The command #swi allows you to set the default command line switches.
These switches will be used if no switches are specified when running the
program.For example:
If your CEDAR.CTL file contained the line
#swi /2p
Then every time you ran CEDAR without any command line switches then CEDAR
will run as if you had typed
CEDAR /2p
When using the #swi command you must have all your options as part of one
switch. For Example you must always use
#swi /ys-
instead of
#swi /y /s-
If you use the second method you will get an invalid option error. This
applies for the configuration file only, you still can split up your
switches on the command line without any problems.
If no Sort switches are set by either the command line or the
configuration file then /yne will be used.
If no Display switches are set by either the command line or the
configuration file then /4v will be used.
If no Output switches are set by either the command line or the
configuration file then /b will be used.
5.0 Version History
April 26, 1989 Version 0.90
Beta test version. Very limited release.
June xx, 1989 Version 1.00
Initial release.
Possible future enhancements
Allow wildcards, so configuration file entries such as .wk? 12 will
work.
Color displayed based of entire file name instead of just the
extension.
For Example, an entry in the configuration of:
tax*.wks 15
would work.
Make CEDAR aware of different types of video monitors (EGA and VGA)
so that it is not tied into an 80 column by 25 line screen.
Make the executable program smaller.
6.0 Registration Form
CEDAR 2.00 ORDER FORM
Please send with check or money order to:
Fred Van Andel Date:_____________________
414 Richmond St.
New Westminster B.C.
Canada V3L 4C2
From:
Name: ________________________________________________
Address:______________________________________________
City:_________________________________________________
Province/State:_______________________________________
Postal/Zip:___________________________________________
Phone:(_____)_________________________________________
Enclosed is a check or Money Order for the following:
US / CDN
Registration of CEDAR 2.00 _____ copies @ $15.00/$17.00 ea $_______.
(Includes Registration, program
and manual on disk)
-Discount: $(______)
B.C.Residents add 6% sales tax: $_______.
Total: $_______.
Multiple copies of CEDAR are subject to the following discount:
1 to 9 copies no discount.
10 to 24 copies 10% discount.
25 to 99 copies 20% discount.
100+ copies 30% discount.
Please rate this package on a scale of 1 to 10:
Usefulness: _____
Power: _____
Ease of use: _____
Documentation: _____
Value: _____
General Comments:_______________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
What features would you like to see in the future:_____________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
Signature:_______________________________________