home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pcmagazi
/
1990
/
02
/
remfree.bat
< prev
next >
Wrap
DOS Batch File
|
1989-08-31
|
594b
|
18 lines
@ECHO OFF
IF NOT '%1'=='' GOTO ok
ECHO Syntax: "REMFREE batchname"
ECHO REMFREE.BAT takes its input batch file and strips out all
ECHO lines containing "REM" followed by a space. It renames the
ECHO original batch file to have the extension "REM".
REM -------- Create QUIT.BAT with the command "REM>QUIT.BAT"
QUIT
:ok
IF EXIST %1.BAT GOTO ok2
ECHO The command line parameter for REMFREE must be a batch
ECHO file name _without_ the BAT extension
QUIT
:ok2
REN %1.BAT %1.REM
TYPE %1.REM | FIND /V "REM " > %1.BAT
ECHO Original stored as %1.REM -- REM-free copy is %1.BAT now.