@ECHO OFF REM ==================================================================== REM This MS-DOS batch file just runs a program in order to overcome REM wrong functionality of pipe within FOR ... DO command in MS-DOS 6.22 REM REM For example, this MS-DOS batch file may be used to plot a set of REM single-valued grids in PostScript using program GRDPS. To generate REM plots 'grd*.ps' of values stored in files 'grd*.out', the following REM construction may be used: REM FOR %%F IN ( grd*. ) DO DEL %%F REM REN grd*.out *. REM FOR %%F IN ( grd*. ) DO CALL RUN grdps 'grd.h' ' ' '%%F' '%%F.ps' REM REN grd. *.out REM where input file 'grd.h' describes the grid dimensions and plotting REM parameters. Files 'grd*.out' are temporarily moved to 'grd*.' in REM order to enable to generate filenames 'grd*.ps'. REM ==================================================================== ECHO %2 %3 %4 %5 %6 %7 %8 %9 /|%1 IF ERRORLEVEL 1 PAUSE REM ====================================================================