home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
VORX
/
NSD11.ARC
/
NSD.DOC
< prev
next >
Wrap
Text File
|
1988-07-19
|
3KB
|
55 lines
NSD.EXE by Bob Montgomery, Orlando, Florida 7-10-88
This is a new sorted directory program which illustates the use and speed of a
binary tree sort algorithm. It also illustrates other concepts useful in
writing applications, such as:
1. Interfaceing C with assy language (putstr.8).
2. Accessing C's global varaiables in assy language.
3. Using far pointers in a small model program.
4. Adjusting to current display parameters (rows, columns, etc).
5. Getting drive parameters.
6. Screen management.
7. Very fast clear screen.
8. Displaying large numbers with commas.
The program accepts any valid DOS path and filespec on the command line, and
displays the files in 20 char columns with the totals at the bottom. It
displays directories in purple, hidden files in red, system files in green, and
all other files in brown (except for monochrome displays, where appropriate
attributes are uses). It is about as fast as SD, and has super fast screen
updates for all text video modes (including 60 line, 132 column EGA modes).
What makes NSD unique is that you can browse thru the directory using the arrow
or PgUp/PgDn keys; the data is always available and does not get lost when it
scrolls off the screen. The commands while viewing a sorted diectory are:
Down Arrow: Go forward 1 file.
Up Arrow: Go back 1 file.
Right Arrow: Go forward 1 column.
Left Arrow: Go back 1 column.
PgDn: Go forward 1 screen.
PgUp: Go back 1 screen.
Escape: Return to DOS.
The source (C and assy language) is included, so you can learn how it works,
and modify it to your requirements. If you upload it to another BBS, please
do not modify it, since problems become very hard to find in modified code.
This program is furnished as is, and the author is not responsible for any
loss or damage caused by its use. It is meant to be a useful utility which
illustates some of the less common aspects of C programming, such as the assy
language interface. If you find the program useful, or learned some new
techniques from the source, please contribute to the author what you think it
is worth to you. Considering that many hours went into developing this program,
around $10 would be a fair amount.
If you have any comments or suggestions, please notify
Bob Montgomery CIS [73357,3140], 132 Parsons Road, Longwood, Fla. 32779.
Revision history:
ver 1.0 7-10-88 Original release.
ver 1.1 7-18-88 Added quick scroll for directories which don't fill the
screen. This way you can compare 2 smaller dirs on the
screen. Original version always cleared the screen.