home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
296.lha
/
DDir.Doc
< prev
next >
Wrap
Text File
|
1989-10-08
|
2KB
|
47 lines
DD /
/
/ The Dynamic Directory Command
-Dale McBane
Of all the commands in the C (command) directory, DIR is probably
the most frequently used. Type DIR from a CLI or Shell window to list all of
the directories and files in the current directory. The DIR command can
also take an argument which is a directory or device name. For instance,
DIR C: lists all the commands in the C device (which is normally assigned to
the C directory of your boot disk). Many options are available with DIR,
but it's not ideal. For instance, it doesn't show the size of the files it
lists. The LIST command does include the file sizes, but it doesn't
alphabetize the list. Also, both the DIR and the LIST commands are wasteful
in their display - a decent-sized directory will cause filenames to scroll
right off the top of the screen.
DD is a replacement directory command that includes the best features
of DIR and LIST. It also breaks new ground. It splits up directories from
files and lists them separately. DD prints the directories in color so that
you can easily distinguish them from the files. Each file is printed along
with its size.
DD also conforms to fit your window. Do you have a tall, narrow
window? DD will fit the files into it. A short, wide window? No problem-
DD will oblige.
If the entire directory will not fit in the window, DD will pause with
the message (MORE). Press any key to continue the listing.
Finally, DD will display a status line. This line is packed with handy
information. It lists the number of bytes in the directory, the percentage
of the disk that has been used, and the total number of bytes available on
the disk.
DD is a CLI program only - it cannot be used from the WorkBench.
DD has been compiled under version 5.02 of Lattice C.
If you're looking for space on your WorkBench disk, you can replace DIR
and LIST with DD. This will net you a savings of 8612 bytes. If you use a
hard drive or if you have plenty of spare room on your boot disk, you may
want to keep DIR and LIST in addition to DD.
To get a listing of the current directory, type DD. Alternatively, you
can give DD a directory name, device name, or filename.
DD is a powerful addition to your command directory. Try it!