EXAMPLE 1:
ECHO OFF
REM This batch command will make a backup copy of the CONFIG.SYS file
REM in the C:\OS2 directory.
ECHO Backing up CONFIG.SYS to C:\OS2.
ECHO If a modified CONFIG.SYS does not work, copy this one back to C:.
COPY C:\CONFIG.SYS C:\OS2\CONFIG.SYS
ECHO This program has finished.
EXAMPLE 2:
ECHO OFF
REM This batch file will print any standard text file.
REM To use it, type in the file name to be printed after you
REM have typed in the name of this batch file.
REM If the batch file is named PRINT.CMD and the file to be
REM printed is named README type PRINT README.
ECHO Printing %1.
TYPE %1 > lPT1
ECHO ON
EXAMPLE 3:
ECHO OFF
REM This batch file will change your command line prompt to
REM display the date, time, and current path.
PROMPT $d $t $_$p\$s
ECHO ON
CLS