home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
oct93
/
cli_util
/
dirs.lha
/
Dirs
/
English
/
dirs.doc
< prev
next >
Wrap
Text File
|
1993-08-26
|
11KB
|
368 lines
Dirs V1.00
Copyright © 1993 Harald Pehl
All rights reserved
FREEWARE
With documentation
Preface
-------
This program is freeware, this means that you can copy it
freely as long as you don't ask any more money for it than a
nominal fee for copying. If you want to distribute this program
you should keep this document with it. This program cannot be
used for commercial purposes without written permission from the
author.
If you have suggestions or remarks about this program, or if you
find any bugs, please let me know. Naturaly I won't refuse any
gifts. When sending in bug reports, please state exactly under what
circumstances the bug occurred, what equipment was used and what
happened. If possible also try to give me enough information to
reproduce the bug. It is very difficult to find bugs when you
don't know exactly what happened.
Write to the following address:
Harald Pehl
Equarhofen 8
97215 Uffenheim
Germany - Europe
Introduction
------------
Dirs is a powerful command that combines the advantages of the List and Dir
command and in addition to that a command which is extremly flexible. Similar to
these MS-DOS computers you can store some of the 22 options you use most in an
environment variable (in the startup-sequence or in the shell-startup). This
environment variable is then interpretated automaticly by the Dirs command.
Usage
-----
Dirs can only be started from the CLI and has fallowing synthax:
Dirs ARGS/M,
C = CLI/S,
S = SINCE/K,
U = UPTO/K,
AS = ALPHASORT/S,
-AS = -ALPHASORT/S,
SS = SIZESORT/S,
-SS = -SIZESORT/S,
DS = DATESORT/S,
-DS = -DATESORT/S,
Q = QUICK/S,
DO = DIRSONLY/S,
FO = FILESONLY/S,
FF = FILESFIRST/S,
SH = SHOWHIDDEN,
NH = NOHEAD/S,
NI = NOINFO/S,
NS = NOSIZE/S,
NP = NOPROTECT/S,
ND = NODATE/S,
NC = NOCOMMENT/S,
V = VAR/K,
HEADFORM/K,
? = HELP/S,
The letters in front of the '=' can be used as abbreviations
The options:
ARGS/M:
Here you can specify several files and directories which should be
displayed. Of course you can use a joker ('#', '?', '#?'...).
If you leave out this option the current directory is displayed.
C = CLI/S:
If you declare this option the source of the arguments is the CLI and
environment variables are neglected. Supposing that the content of the
environment variable is: 'alphasort noprotect nocomment', then the
output is sorted (A-Z), the protection bits and the comment are hidden.
Now it is still possible to hide also the size by typing 'dirs nosize'.
But if one want an output sorted by size one must use fallowing:
'dirs CLI sizesort'. (Now the environment variable is not aautomaticly
read out and the default settings are predominant).
S = SINCE/K:
Only files and directories since a certain date or time are displayed.
You can use 'tomorrow', 'yesterday' or 'today' to refer to a certain
day.
U = UPTO/K:
Only files and directories upto a certain date or time are displayed.
You can use 'tomorrow', 'yesterday' or 'today' to refer to a certain
day.
AS = ALPHASORT/S:
The files and directories are sorted by name (A-Z, no case sensetive).
-AS = -ALPHASORT/S:
Reverses the order of ALPHASORT.
SS = SIZESORT/S:
The files are sorted by size (smallest-biggest).
-SS = -SIZESORT/S:
Reverses the order of SIZESORT.
DS = DATESORT/S:
The files and directories are sorted by date and time (oldest-today).
-DS = -DATESORT/S
Reverses the order of DATESORT.
Q = QUICK/S
Choosing this option, only the name of the files and directories is
displayed. 'QUICK' has no effect on the sortmode.
DO = DIRSONLY/S:
Only directories are displayed.
FO = FILESONLY/S:
This is the opposite of the option 'DIRSONLY' and -unbelievable but
true- displays only files.
FF = FILESFIRST/S:
Normaly Dirs first displays directories and then files. Using this
option you can turn araound this order.
SH = SHOWHIDDEN:
Dirs looks after the protectionbit 'h' (Hidden-Flag) and does not
display files and directories with this bit. If you use 'SHOWHIDDEN'
these files and directories are also displayed.
NH = NOHEAD/S:
This option causes that no statusbar is displayed.
NI = NOINFO/S:
NS = NOSIZE/S:
NP = NOPROTECT/S:
ND = NODATE/S:
NC = NOCOMMENT/S:
These five options hide certain files or information:
- .info-files
- the size of files (no '(dir)' with directories)
- the protection bits
- the date and time
- the comment
V = VAR/K:
By default dirs searches for the environment variable 'DIRCMD' and
reads out its content. If you like to make Dirs read out a certain
environment variable, then you can use the option 'VAR'. For instance
if you like to reado out the environment variable 'dirvar', you can
use one of the fallowing ways:
1. Dirs VAR=dirvar
2. Dirs V dirvar
3. Dirs V=ENV:dirvar
If you leave out the path of the environment variable (1. and 2.
example) the variable is searched in ENV:
HEADFORM/K:
Here you can define the format of the status bar (by default that is
'<»--«>'). If you type 'Dirs HEADFORM " -Hallo- " you get something
like this:
'35 Directories -Hallo- 2 Files -Hallo- 103514 Bytes used'
? = HELP/S:
This option displays a short helptext
Beispiele
---------
The fallowing examples refers to this environmen variable:
'ALPHASORT NOPROTECT NOCOMMENT NOINFO'
1. Dirs ENV: s:#?-startup
Directory: 1mENV:0m
BootX (dir) Today 10:11:16
EGS (dir) Today 10:11:15
HDMenu (dir) Today 10:11:15
sys (dir) Today 10:11:16
DIRCMD 36 Today 10:11:18
4 Directories <»--«> 1 File <»--«> 36 Bytes used
Directory: 1ms:0m
Ed-startup 616 24-Apr-78 19:39:48
shell-startup 162 08-Sep-92 20:32:53
user-startup 408 30-Jun-93 17:57:57
3 Files <»--«> 1186 Bytes used
2. Dirs l: c -ss nd headform = " -<>- "
Directory: 1ml:0m
MessyFileSystem 24068 ----rwed
bootram-handler 20400 ----rwed
FastFileSystem 12248 ----rw-d
dmouse-handler 9408 --p-rwed
ASH 7932 --p-rw-d
Newcon-Handler 7532 ----rw-d
Shell-Seg 7116 --p-rw-d
Ram-Handler 6464 ----rw-d
speak-handler 4188 ----rw-d
Pipe-Handler 3332 ----rw-d
queue-handler 2664 ----rw-d
aux-handler 2392 ----rw-d
Disk-Validator 1848 ----rw-d
port-handler 1364 ----rw-d
UnixDirs-Handler 984 ----rwed
null-handler 908 --p-rwed
ConHandler 176 --p-rwed
17 Files -<>- 113024 Bytes used
3. Dirs c:d#? cli ff dh0:#?.info dh0:M#? tools/virenkiller/#?(b|x)#? noinfo
nocomment MaxonC/Source/#?.c ds
Directory: 1mc:0m
dmouse 10376 --p-rwed 22-Aug-92 17:27:13
disdf 8096 ----rwed 23-Aug-92 13:16:36
DiskDoctor 7112 --p-rwed 23-Aug-92 18:23:51
DiskChange 312 --p-rwed 23-Aug-92 18:23:50
Dir 3440 --p-rwed 23-Aug-92 18:23:49
Delete 1972 --p-rwed 23-Aug-92 18:23:48
Date 1092 --p-rwed 23-Aug-92 18:23:46
Display 21044 ----rwed 23-Aug-92 22:18:09
Decrunch 3624 --p-rwed 27-Aug-92 20:24:09
disksalv 33364 ----rwed 27-Aug-92 21:54:48
DOpusRT 4216 ----rwed 21-Jan-93 10:47:17
dirs 9768 ----rwed Thursday 22:10:27
12 Files <»--«> 104416 Bytes used
Directory: 1mdh0:0m
Musik (dir) ----rwed 04-Jan-78 07:45:00
Mathe (dir) ----rwed 04-Jan-78 14:14:06
MonitorStore (dir) ----rwed 22-Aug-92 03:17:01
Monitors (dir) ----rwed 14-Nov-92 20:40:59
MaxonWORD (dir) ----rwed 30-Apr-93 17:31:39
MaxonMAGIC (dir) ----rwed 01-May-93 18:31:06
MaxonC (dir) ----rwed 31-Jul-93 15:32:01
7 Directories
Directory: 1mTools/Virenkiller/0m
EarlyExplode 252 ----rwed 14-Oct-92 19:07:34
LVD1.74 3840 ----rwed 14-Oct-92 19:07:33
EVW2.22 3536 ----rwed 14-Oct-92 19:07:29
Virus_Checker 26312 ----rwed 29-Nov-92 21:21:36
VT (dir) ----rwed 04-Jan-78 07:46:41
VirusZ (dir) ----rwed 29-Nov-92 22:00:50
BootX (dir) ----rwed 29-Nov-92 22:03:28
3 Directories <»--«> 4 Files <»--«> 33940 Bytes used
Directory: 1mMaxonC/Source/0m
BOOPSI.c 1964 ----rwed 11-Jan-78 07:07:59
wbstart.c 971 ----rwed 08-Dec-92 20:50:10
NewBorder.c 2002 ----rwed 23-Mar-93 14:44:08
font.c 933 ----rw-d 23-Mar-93 15:09:26
Prim.c 552 ----rwed 25-Apr-93 14:37:12
change.c 3631 ----rwed 25-Apr-93 15:37:27
maxwin.c 814 ----rwed 27-Apr-93 15:54:13
optimizewin.c 604 ----rwed 27-Apr-93 16:00:09
speicher.c 2108 ----rwed 08-Jun-93 12:01:28
AmigaMagazinPrim.c 51 ----rwed 27-Jun-93 18:18:24
dirs_inter.c 17367 ----rwed 01-Aug-93 13:08:06
cout.c 3130 ---arwed 04-Aug-93 19:20:48
mydate.c 2397 ----rwed Thursday 11:05:28
dirs.c 16451 ----rwed Thursday 22:39:52
14 Files <»--«> 52975 Bytes used
Description
-----------
Dirs is written in C++ and compiled under MaxonC++. I use the ReadArgs()
function of the DOS-Library to evaluate the arguments. A very impotant part of
my program are the two classes 'List' and 'Entry' in which I store the datas
in a certain order depending on the sortmode. At last I display a string filled
with certain information depending on the arguments.
© 1993 Dirs V1.00 written by Harald Pehl
Greeting to Florian Derks and Martin Gleiß.