home *** CD-ROM | disk | FTP | other *** search
- echo off
- echo.
- echo ┌───────────────────────────────────────────────────┐
- echo │ Type files allowing wildcards │
- echo │ By Prof. Timo Salmi, ts@chyde.uwasa.fi, 21-Oct-90 │
- echo └───────────────────────────────────────────────────┘
- echo.
-
- rem If no parameters then give the instructions
- if "%1"=="" goto _help
-
- rem Type the files
- :_loop
- if not exist %1 goto _err
- for %%f in (%1) do %comspec% /e:1024 /c show1 %%f
- shift
- if not "%1"=="" goto _loop
- goto _out
-
- rem Warn if file not found, then try the next
- :_err
- echo File(s) %1 not found
- shift
- if not "%1"=="" goto _loop
- goto _out
-
- rem The instructions "(if everything else fails, then rtfm :-)"
- :_help
- echo Usage: SHOW [FirstFile] [SecondFile] [...]
- echo.
- echo Examples: SHOW c:\*.bat
- echo SHOW tsbat.inf *.pas
- echo.
-
- rem That was the whole shebang
- :_out
- echo on
-