Category : File Managers
Archive   : FBE11.ZIP
Filename : FE.DOC

 
Output of file : FE.DOC contained in archive : FBE11.ZIP
Software Reference Guide


Files by Extension (FE.EXE)

A Directory Utility

Version 1.1

September 6, 1990


Copyright (C) 1990 by


Dave Peckham
6809 Prince Georges Avenue
Takoma Park, MD 20912-4862

Table of Contents


1. Introduction . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 Purpose. . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Notes. . . . . . . . . . . . . . . . . . . . . . . . 1

2. Using FE.EXE . . . . . . . . . . . . . . . . . . . . . . . 2
2.1 Usage. . . . . . . . . . . . . . . . . . . . . . . . 2
2.2 Examples . . . . . . . . . . . . . . . . . . . . . . 3
2.3 Error Handling . . . . . . . . . . . . . . . . . . . 4
2.4 Limitations. . . . . . . . . . . . . . . . . . . . . 5

3. History. . . . . . . . . . . . . . . . . . . . . . . . . . 5

4. References . . . . . . . . . . . . . . . . . . . . . . . . 6
1. Introduction


1.1 Purpose

Files by Extension (FE.EXE) simply lists files in the
current directory by their three-letter extension.

It has several features:

þ File extensions are sorted alphabetically.

þ Files within each extension are sorted
alphabetically and displayed in columns to the
right of the extension. You can set the number of
columns to be displayed with the -C# command line
switch.

þ Optionally shows number of files per extension,
total files and number of unique extensions with
the -T command line switch.

þ Compatible with DOS, OS/2 character mode, and OS/2
Presentation Manager (using the OS/2 VIO
interface).

1.2 Notes

If you would like to contact me with suggestions or
comments, please feel free to leave a message on one of the
bulletin boards listed below, or write to me at the above
address. Please don't send money. If you like FE and use
it regularly, let me know. I'll be satisfied knowing that
you find FE useful.

FE.EXE is a replacement for a DOS-based program (FE.COM)
that I used many times each day. Moving to OS/2, I found it
somewhat inconvenient to switch to the DOS box just to run
this little gem.

FE.EXE is hardly as slim as the 512 byte FE.COM, however I
have tried to duplicate the functionality of the original
program while adding enhancements that make it compatible
with OS/2 character mode and OS/2 Presentation Manager. I
really would like to thank the original author for such a
wonderful little utility, but I don't remember where I found
FE.COM, and I don't recall seeing any credits.

I have included the Microsoft C 5.1 source code for those of
you who might be interested. Feel free to make
modifications. I would like to hear how you improve it.


The Programmer's Corner, Columbia MD, Sysop Gary Smith
(301) 596-1190, -1180, -1187
2400-9600 baud, 8-N-1

Computer Connections, Washington DC, Sysop Robert Blacher
(202) 547-2008, -3037
2400-9600 baud, 8-N-1


2. Using FE.EXE


2.1 Usage

FE [-H] [-T] [-C#]

-H Display help
-T Display file totals
-C# Display files in # columns (minimum 1, maximum
255)

You may stop the display of files by pressing the key.
You may pause the display by pressing some other key like
the key or the SpaceBar. To continue the display,
press any key.


2.2 Examples

FE
FE -h
FE -t -c4

Here is a sample of a display produced by FE.EXE. This
sample shows files in four columns. FE will display files
in six columns unless you specify the number of columns with
the -C# switch.

------------------------------------------------------------

FE-Files by Extension 1.1, Copyright (C) 1990, Dave Peckham

C:\

.BAK files: frecover
.BAT files: autoexec boot n
.CFG files: boot net shell
.CMD files: n os2init startup
.COM files: command
.DAT files: frecover setup
.SYS files: clock01 config disk01 himem
kbd01 physmem print01 screen01
smartdrv
._DD files: file0000 file0001

------------------------------------------------------------


2.3 Error Handling

FE is almost too simple to require error messages, but for
what it's worth, here are brief explanations:

"No files in this directory" Is there a better
way to say this?

"Not enough memory for file extensions"
"Not enough memory for file names" You probably won't
see these memory
allocation error
messages unless
you're running under
DOS and have almost
no memory free. If
you do, you'll just
have to free up a
little memory.


2.4 Limitations

FE does not support long file names. This really isn't a
problem for most of us...we're still using DOS 3.xx or OS/2
1.xx. I haven't really used long file names, so I don't
even know if FE has any value when you use them. If you
have ideas about this, please let me know.

FE is an OS/2 VIO application. This can either be a
limitation or an advantage. If you spend most of your time
in Presentation Manager, you probably are used to the nice
text fonts and FE will seem out of place. If you spend most
of your time using the DOS or OS/2 command line, FE will
look just like any other character mode utility. In either
case, you may find the fact that output from VIO
applications can't be redirected to a file to be a
disappointment. Please let me know if you would use this
feature.

FE doesn't make the most efficient use of available memory.
The file extension and file name pointer arrays are declared
rather than allocated. This seemed like a good first
approach. If this causes a problem for you, please let me
know. Future versions will probably allocate these arrays.
I don't have too many directories with more than 500 files
per file extension, or more than 100 unique file extensions.

FE requires an 80286-based or better computer. If you would
like a version for 8086 or 8088 computers, please contact
me.



3. History

Version 1.0 August 26, 1990, First release. Please
distribute this program freely.
Version 1.1 September 6, 1990 Added -T (file totals) and
-C# (file columns) switches. Improved
keyboard response.



4. References

"The Waite Group's OS/2 Programmer's Reference", Asael
Dror, Howard W. Sams & Company, Indianapolis, IN, 1989

"The Waite Group's Microsoft C Bible", Nabajyoti Barkakati,
Howard W. Sams & Company, Indianapolis, IN, 1988

"Microsoft QuickHelp Version 1.4", Microsoft Corporation,
Redmond, WA, 1989

If you are interested in programming OS/2 applications, I
recommend these texts. Each of these has proven very useful
at some point. Asael Dror's book can be somewhat awkward
for programmers using Microsoft C and the Microsoft header
files for OS/2, but it provides good introductions to major
OS/2 features, and reference pages with assembler and C
examples. The Microsoft C Bible is a fantastic time-saver
if you're working with Microsoft C 5.1 in DOS or OS/2.
QuickHelp is almost indispensable for its ease of use and
depth of coverage.


  3 Responses to “Category : File Managers
Archive   : FBE11.ZIP
Filename : FE.DOC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/