home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pcmagazi
/
1991
/
11
/
procnorm.bat
< prev
next >
Wrap
DOS Batch File
|
1991-01-08
|
2KB
|
43 lines
@ECHO OFF
REM *** This is PROCNORM.BAT ***
STRIPZIP *.ZIP
REM STRIPZIP strips comments from ZIP files. Delete
REM the above line if you don't have STRIPZIP.
IF EXIST INTRO.TXT ERASE INTRO.TXT
IF EXIST READ_1ST.EXE ERASE READ_1ST.EXE
IF EXIST DO_READ.ME ERASE DO_READ.ME
IF EXIST READ_ME.750 ERASE READ_ME.750
IF EXIST READ-ME.512 ERASE READ-ME.512
IF EXIST HAPPY.BBS ERASE HAPPY.BBS
IF EXIST HAPPY.EXE ERASE HAPPY.EXE
IF EXIST READ-ME.PLS ERASE READ-ME.PLS
IF EXIST UGLY.COM ERASE UGLY.COM
IF EXIST GOOD.COM ERASE GOOD.COM
IF EXIST BAD.COM ERASE BAD.COM
IF EXIST WELCOME.TXT ERASE WELCOME.TXT
IF EXIST HOWDY.TXT ERASE HOWDY.TXT
IF EXIST HOWDY.EXE ERASE HOWDY.EXE
IF EXIST ALLREAD.ME ERASE ALLREAD.ME
IF EXIST READ-PLS.EXE ERASE READ-PLS.EXE
REM Scan for all know viruses in the primary directory
REM Substitute your own favorite virus scanner if you wish.
SCAN *.* /a /nomem /x /m
REM if Scan returns an errorlevel of 1 or 2,
REM post a message on the screen
IF ERRORLEVEL 1 ECHO Warning!!! SCAN.EXE indicates Virus infection!!!!
IF ERRORLEVEL 2 ECHO Warning!!! SCAN.EXE terminated abnormally, ...!
IF ERRORLEVEL 2 ECHO Proceed With Caution!!!!
REM Get my attention if there's a virus or problems
IF ERRORLEVEL 0 GOTO QUITOK
REM ^Gs in next line are Ctrl-G
ECHO
ECHO Please press Ctrl-Break and deal with virus-infected
ECHO file. Then delete all the TEMPZIP.$$$ subdirectories
ECHO and their contents and start processing again.
PAUSE
ECHO I said, press Ctrl-Break!
REM ^C in next line is Ctrl-C. Note that next line works
REM only in DOS 3.3 or higher.
ECHO | PAUSE > NUL
:QUITOK