system@syzzle.chi.il.us (awol) (06/01/91)
Here's a little batch file I did in order to more easily use some of the documentation files (man pages) that come with many of the programs posted here. It assumes that you have the files in c:\sys\lib\man, and that the files have the extension '.man'. And that 'less' is available in the dos search path. It uses 4dos's @name function to list filenames without the extension, so if you just type 'man', it will display a list of all subjects you have help files (man pages for). Like so: usage: man subject the following subjects are available: -------- bsfilt cawf nro less It's not very complicated, but I find it very usefull, and it might be usefull to someone else. You could probably change it to work without 4dos without much trouble. ------------- cut here ----------------- rem man.btm @echo off if %1! == ! goto help if not exist c:\sys\lib\man\%1.man goto help less c:\sys\lib\man\%1.man goto end :help beep echo usage: man subject echo the following subjects are available: echo -------- for %%j in (c:\sys\lib\man\*.man) do echo %@name[%%j] :end -------------- end cut ------------------ +------------------------+----------------------------+ | Al Oomens (awol) | If you can't make it GOOD, | | awol@syzzle.chi.il.us | then make it BIG!!! | +------------------------+----------------------------+