home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
dos
/
fil.lzh
/
FIL.DOC
< prev
Wrap
Text File
|
1986-04-29
|
5KB
|
92 lines
FIL.COM
A supplement to the DIR command.
PURPOSE: The fil(es) command was developed to provide information
that is not available with the DIR command. The base code comes
from Professional Basic by Morgan Computing. This routine is
copyrighted by Morgan Computing. It may be freely distributed.
However, it may not be sold. Morgan Computing is not resposible
for any damages resulting from the use of this program.
INVOCATION: FIL is invoked in the same manner as DIR.
example: FIL b:*.bas
This example will list all the files with the tag BAS in the current
directory on drive B. A small but significant difference is that
if the name specified is a sub-directory entry and that entry is
in the current directory, the entry will be listed. (DIR lists
the contents of the sub-directory.) To list the contents of the
sub-directory with FIL, enter the name of the sub-directory followed
by a slash. Example: FIL a:basprogs\ will list the contents of
sub-directory BASPROGS.
The output from FIL can be redirected. Example: FIL c:*.* >PRN
will direct the output to the printer. A more useful redirection
is FIL A: > C:DISK113.DIR which puts a copy of the directory
on the diskette in drive A into a disk(ette) file on drive C.
OUTPUT: FIL lists the type of media in the drive, the files
specified on the command line, and a summary of the number of
files listed and the sum of the bytes of those files and the
bytes free (left) on the drive.
The type of media table in FIL recognizes single and double sided
diskettes, 8 and 9 sector formatting and some hard disks. It is
used for identifying diskettes that have been sent to us from
outside sources.
The file names, their length in bytes and their attribute bit
settings are listed in pairs. The lengths shown are the directory
entry length not the actual length used on disk(ette). Disk(ette)
files are allocated in clusters which often causes the amount of
spaced used by a file to exceed its length. The attribute bits
are used by PC-DOS to "protect" certain files. The codes shown are
A - Archive bit set. (See the BACKUP routine.)
S - System file.
H - Hidden file. This file is not listed with DIR.
R - Read Only. This file cannot be opened for output
or append under PC-DOS.
The final line is a summary of the files listed. It lists the
number of entries selected and the total bytes used by those
entries. For example, if FIL was invoked with a *.BAS to list
all the Basic source files in a directory, the summary line would
total all the bytes used by those Basic source files. The final
entry is the bytes left on the drive. Note that the sum of the
all the files on a disk(ette) and the bytes left does not normally
equal the total capacity of the drive. This is due to files being
allocated by cluster which leads to bytes being allocated to files
which are currently not used.
KEYBOARD CONTROL: In keeping with the operational philosophy of
Morgan Computing's software, FIL can be controlled from the keyboard
while it is running.
The space bar will single step the listing. Each push of the space
bar lists the next line. This feature allows the user to look at
directories that cannot be contained in one screen.
The return key will return the program to full speed. Each line
will appear on the screen when the program is ready to print it.
There is no restriction on the number of times that you can toggle
between single step and full speed modes.
The ESCape key will terminate the listing prematurely. The FIL
program will go directly to the summary line. The summary line
will reflect only the entries listed before the ESCape key was
pushed.
COMMENTS: This program has been useful to me. I built it to
get answers about disk(ette)s that were not available elsewhere
in PC-DOS. I would appreciate suggestions about improvements.
J. C. Hoisington
MORGAN COMPUTING
10400 N Central Expwy. Suite 210
Dallas, Texas 75231
(214) 739-5895
84'11'12 jch