After 25 years of programming, I have accumulated a vast array of tools especially command line oriented tools. One such tool is FPATH.EXE which I used constantly on a daily basis. There is no way I can be productive without it.
What does FPATH do?
Well, its like a "WhereIS" utility but instead, it is designed to search the paths or directories defined in your environment table. For C/C++ programmers, the following three (3) environment strings are used:
- PATH - Defines the directories for executables, batch files, etc.
- INCLUDE - Defines the directories for your C/C++ include files (*.H files)
- LIB - Defined the directories for your C/C++ Library files (*.LIB files)
For Delphi programmers (at least up to 3.0 which is when I last used it), the units and includes directories are defined in the DCC32.CFG file. FPATH will search this file as well! Another concept that FPATH helps with is figuring out the extension of a file. Here are some every day examples one may go through:
Where is the windows.h file?
6334 05/23/2001 23:38:46 \program files\microsoft sdk\include\windows.h
In this case, it was found in the INCLUDE environment string in the SDK include directory, which is expected.
I heard about this program, MSDEV, where is it?
270406 06/17/1998 04:00:00 \vstudio\common\msdev98\bin\msdev.exe
In this case, no extension was provided because I don't know what it is. FPATH found it in the PATH with an extension of EXE. FPATH will try BAT, CMD, COM and EXE which is the order the OS command line interpreter will load files (Note: This was true in early 90's when FPATH was designed).
Hmmm, I downloaded this .NET program and it failed because its looking for MSCOREE.DLL. Do I have it?
In the case, it wasn't found. FPATH search the above environment strings. WCINCLUDE and WCLIB are our directories for our wcBASIC compiler used for our product Wildcat! Interactive Net Server (http://www.santronics.com)
If you want to define your own group of environment strings to search, then set the FPATH environment string.
Anyway, I think you get the idea. The source to FPATH is included. Enjoy.
Hector Santos, CTO
Santronics Software, Inc.
- V3.5P - Initial Public Release