home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
utils
/
dabutil.zip
/
DABUTIL.DOC
< prev
next >
Wrap
Text File
|
1988-07-15
|
16KB
|
449 lines
DABUTIL Version 1.1 Documentation, Copyright 1988 by Don Branson page 1
- - - - - - - - - - - - - - LD (List Directories) - - - - - - - - - - - - - -
List all directories on the current drive,
starting with the root directory.
Format:
ld [d:] [-s]
Where 'd:' is an optional drive letter which can be specified
to list the directories of a drive other than the current
drive. Hidden directories will be displayed.
Use -s to print a summary of each directory. The summary includes
a count of the files in the directory (not including subdirectories)
and a sum of the file sizes in the directory.
Examples:
ld
will list all directories in the current drive.
ld a:
will list all directories in drive A
ld -s
will list all directories in the current drive, and shows
the total number of files, and the sum of their file sizes.
The count and sum do not include subdirectory entries or
volume labels, but do include hidden files.
- - - - - - - - - - - - - - - - FF (Find Files) - - - - - - - - - - - - - - -
List all occurrences of a file, the directories they are found in, and
some information about each occurrence.
Format:
ff [d:]filename
Where filename is required. Filename may contain the
wildcard characters '?' and '*'.
Examples:
ff *.c
will display all the directories where any file having the extension
.C is found, and each occurence of file with that extension.
A drive specifier 'd:' may be specified to search a drive other than
the current drive. Hidden files will be displayed, subdirectory
entries will not.
DABUTIL Version 1.1 Documentation, Copyright 1988 by Don Branson page 2
- - - - - - - - - - - - - - DI (Disk Info) - - - - - - - - - - - - - - - - - -
List information about a diskette or fixed disk. Shows sector size,
track size, cluster size, FAT (File Allocation Table) size, root directory
size, etc. Shows if the boot record, the FAT, and the root directory can be
read. A drive may be specified. A subdirectory or file may be specified.
The cluster and sector numbers where that subdirectory or file resides
will be displayed.
Format:
di [d:][filename]
Where filename can be:
file or
\subdirectory or
\subdirectory\file or
c:\subdir\file etc.
No wildcards (? or *) are allowed in the file name.
Examples:
di readme.doc
will list the boot record information for the current disk
and the clusters and sectors for readme.doc. DI will search
for readme.doc in the current directory.
di \readme.doc
will do the same thing, except that the backslash will indicate
to DI to search in the root directory of the current disk.
di c:\readme.doc
will again do the same thing, except that DI will look on the drive
C: to find file readme.doc
di \word\readme.doc
will tell DI to look on the current disk, in the subdirectory
WORD to find readme.doc.
di c:\word\readme.doc
will tell DI to look on disk C: in subdirectory WORD for readme.doc.
Instead of readme.doc, a subdirectory could be specified, for
example:
di c:\word
will look in the root directory of the current drive for the
subdirectory WORD and list the clusters and sectors that WORD
occupies.
DI first attempts to read the boot record, and indicates if there
are any problems reading it. If read successfully, this is the
information it contains (all numbers are shown in decimal and
hexadecimal):
DABUTIL Version 1.1 Documentation, Copyright 1988 by Don Branson page 3
- - - - - - - - - - - - - - DI (Disk Info) continued - - - - - - - - - - - - -
+ System id:
Indicates what operating system was used to
format the disk. For example: IBM 3.1
+ Sector size:
The size in bytes of a disk sector (usually 512).
+ Sectors per cluster:
A cluster is the unit of storage that files are
allocated in. This value indicates the size of
a cluster.
+ Total sectors on disk:
Includes boot record, FAT, root directory, and data
area.
+ Total clusters on disk:
Total sectors / sectors-per-cluster.
+ Sectors per track:
Each concentric ring on one disk surface is divided
into this number of sectors.
+ Number of heads (sides):
The number of recording surfaces (and therefore the
number of read/write heads).
+ Total cylinders:
The total number of cylinders on the disk.
+ Disk capacity:
Total storage in kilobytes. Includes the boot record,
the FAT, the root directory, and the data area.
+ FAT size (in sectors):
The FAT (File Allocation Table) is a table which
contains lists of the clusters allocated to each
file. The value shown is the size of a single copy
of the FAT.
+ Copies of the FAT:
Typically, two copies are kept of the FAT, in case
the first becomes unreadable.
+ First directory block:
The first sector assigned to the root directory. The
root directory is assigned in a single contiguous
block.
+ Number of directory entries:
The root directory is fixed in size. This number is
the maximum number of directory entries that it may
have.
+ Directory size (in sectors):
The total sectors required to hold the number of
directory entries.
+ Number of reserved sectors:
This is the number of sectors reserved before the
FAT. Typically one, for the boot record.
+ Special reserved sectors:
I don't know all that this field includes. It does
include the sectors of previous partitions on a
partitioned drive.
DI then attempts to read the FAT and the root directory into memory.
An error message will indicate any problems.
If a file was specified on the command line, the FAT chain is listed.
The FAT chain is the list of all clusters. The sectors in each
cluster are displayed.
DABUTIL Version 1.1 Documentation, Copyright 1988 by Don Branson page 4
- - - - - - - - - - - - - - - ENC (ENCrypt) - - - - - - - - - - - - - - - - -
Encrypts a file using the supplied password. This program performs a simple
encryption, and is useful against casual prying, but does not necessarily
comply with any standards for security.
Format:
enc file1 file2 password
Where file1 is the file to encrypt, file2 is the resultant
encrypted file, and password is used to perform the encryption.
To recover the contents of file1, type:
enc file2 file3 password
File3 will now contain what file1 contained. Password
must be keyed exactly the same: case and length, etc.
If the password contains spaces, it must be
enclosed in double quotes:
enc file1 file2 "pass word"
You must know the password in order to restore the original
contents of the file, since the password is not saved anywhere.
DABUTIL Version 1.1 Documentation, Copyright 1988 by Don Branson page 5
- - - - - - - - - - - - - - - - CATALOG - - - - - - - - - - - - - - - - - - -
Lists files on a diskette or fixed disk to stdout. (Which may be
redirected.) A header with the disk name, the date and file size is
printed, each directory will be shown, and all the files in each
subdirectory. If an .ARC file is found, all the files contained in it will
be listed, indented after the .ARC file.
Format:
catalog [d:] [-w]
Where 'd:' can be specified to list a disk other than the
current one, and where '-w' specifies that a description of
compression technique is printed for each file in an archive.
Files are printed with file name, extension, size, and date
of last update. Files in archives are additionally listed
with the CRC, and the compressed size of the file. The compression
technique is shown if the '-w' (wide) option is selected.
If the wide option is selected, the print width is 132
characters, so set your 80-column printer to compressed mode
if it has that option.
Examples:
catalog
will list all the files in all directories of the current disk
to the screen. Files contained in .ARC files will be listed.
catalog >prn
will do the same thing, but the output will be sent to the printer.
(Substitute LPT1, etc. where applicable.)
catalog a:
will list the files in all directories of the A: disk to the screen.
catalog -w
will list all files of the current disk. In addition, when files in
.ARC files are listed, a short description of the technique used to
compress the file will be displayed. When this option is specified,
the ouput is 132 characters wide, so probably, you will want to set
your printer to 132 columns, then redirect the output of CATALOG to
the printer, like this:
catalog -w >prn
You may also do this:
catalog a: -w >prn
or this:
catalog -w a: >prn
which does the same.
DABUTIL Version 1.1 Documentation, Copyright 1988 by Don Branson page 6
- - - - - - - - - - - - - - - - SD (Sort Directory) - - - - - - - - - - - - -
Reads the current directory, sorts it based on sort options specified, and
writes it back to the disk. This program has been tested on an IBM-PC, an
IBM-PC/AT, and a PS/2 model 80. It has been tested with 360K floppies and
1 meg floppies, and with a 20M fixed disk. It has been tested under MS-DOS
versions 2.0, 3.0, 3.1 and 3.3. If you use this program with any other
configuration, test it first on a scratch disk, to make sure that the
directory format is compatible with SD.
Format:
sd {nedts} [-d]
Where n, e, d, t, and s are the sort options. Any or all of
these may be specified, and in any order.
Sort options: n - Sort on filename (Alphabetically)
e - File extension (Alphabetically)
d - Date (Oldest to newest)
t - Time (Oldest to newest)
s - Size (Smallest to largest)
The '-d' parameter specifies that all subdirectory entries in
the directory be sorted to the top of the list. If not
specified, the subdirectory entries are sorted with the other
files. Deleted entries are always sorted to the end of
the directory. (When a file is deleted by MS-DOS, the entry
is not physically removed, but is flagged to indicate that
it can be used for another file entry.) A '-' can be used after
any sort option to reverse the order of that sort.
Examples:
sd ne
will sort the current directory by name first, then extension, like
this:
Volume in drive C is HARD DRIVE
Directory of C:\WORD
. <DIR> 9-03-87 10:45a
.. <DIR> 9-03-87 10:45a
1 STY 1664 9-19-84 12:00p
ARTICLE STY 1024 9-19-84 12:00p
DANSRES BAK 512 4-06-85 2:56p
DANSRES DOC 512 4-06-85 3:03p
DEFAULT STY 768 9-19-84 12:00p
DRAFT STY 1024 9-19-84 12:00p
EXAMPLE DOC 4352 9-18-84 12:00p
MOUSE COM 4192 9-18-84 12:00p
WORD COM 2062 9-18-84 12:00p
11 File(s) 5275648 bytes free
DABUTIL Version 1.1 Documentation, Copyright 1988 by Don Branson page 7
- - - - - - - - - - - - - - SD (Sort Directory) continued - - - - - - - - - -
sd en
will sort the current directory by extension first, then name, like
this:
Volume in drive C is HARD DRIVE
Directory of C:\WORD
. <DIR> 9-03-87 10:45a
.. <DIR> 9-03-87 10:45a
DANSRES BAK 512 4-06-85 2:56p
MOUSE COM 4192 9-18-84 12:00p
WORD COM 2062 9-18-84 12:00p
DANSRES DOC 512 4-06-85 3:03p
EXAMPLE DOC 4352 9-18-84 12:00p
1 STY 1664 9-19-84 12:00p
ARTICLE STY 1024 9-19-84 12:00p
DEFAULT STY 768 9-19-84 12:00p
DRAFT STY 1024 9-19-84 12:00p
11 File(s) 5271552 bytes free
Other examples:
sd dts -d
will sort subdirectory entries to the top, and will sort the files
on date, time and size. The subdirectories will be sorted on the
same parameters.
sd dt
will sort the directory with the newest files at the end of the list.
sd d-t-
will sort the directory with the newest files at the top of the list.
sd n-e
will sort the directory on name in reverse alphabetic order, and
When using the -d parameter to sort the subdirectory entries to the
top, the subdirectory entries will be sorted on the same parameters
as the filename entries.