home *** CD-ROM | disk | FTP | other *** search
- echo off
- echo.
- echo ┌──────────────────────────────────────────────────┐
- echo │ M(ultiple) command batch processor │
- echo │ By Prof. Timo Salmi, ts@chyde.uwasa.fi, 4-Mar-90 │
- echo └──────────────────────────────────────────────────┘
- echo.
-
- if "%1"=="" goto _help
-
- set _command=
- :_loop
- if "%1"=="" goto _do_last
- if "%1"=="-" goto _doit
- set _command=%_command% %1
- shift
- goto _loop
-
- :_doit
- %_command%
- set _command=
- shift
- goto _loop
-
- :_do_last
- %_command%
- goto _out
-
- :_help
- echo If you have been bothered by the fact that MsDos cannot handle more
- echo than one command at the command line, here is the batch for you.
- echo.
- echo Usage: M [FirstCommand] [Parameters] [-] [SecondCommand] [Parameters] [...]
- echo.
- echo Examples: M dir *.exe - dir /w *.bat
- echo.
- echo If you get an "Out of environment space" message, increase your
- echo environment space by using shell configuration in config.sys:
- echo MsDos 3.30 example: shell=c:\bin\command.com /e:1024 /p
- echo.
- goto _out
-
- :_out
- set _command=
- echo on
-