home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
lrcs30.zip
/
examples.zip
/
LARCSERL.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-05-15
|
4KB
|
77 lines
@ECHO OFF
REM ============================================================================
REM
REM LARC-S "LARC Examples"
REM LARC-D "Serialization Command File"
REM LARC-V "100"
REM
REM Revision history:
REM kbg 05/15/94 100 - Created.
REM
REM Some general notes about this file follows.
REM
REM This batch file provides a method for you to automate some post-release
REM diskette creation commands. For example, you can use this command file to
REM embed product serial numbers into released program files. You can also
REM include commands that will scan your release diskettes for software viruses.
REM
REM LARC allows you complete freedom over the commands you include in this file.
REM Since LARC executes this standard DOS command batch file, you can use any
REM combination of system commands.
REM
REM Normally, ECHO OFF is set to keep things like REM lines from being
REM scrolled up the screen. Then ECHO commands are used to display progress
REM messages, if necessary. In addition, piping information to a "progress"
REM file allows you to retain a record of the process for later inspection.
REM
REM Not all programs support piping, so some information may not get saved.
REM You will need test the programs used in this command file to determine if
REM useful information is saved if piping is used.
REM
REM Notice also that you should test DOS ERRORLEVEL after issuing commands
REM whenever possible. Then use the GOTO statement to branch to special error
REM message display sections. Make sure you use the PAUSE statement to stop
REM processing whenever an error is detected. Not all programs (especially
REM older ones) set ERRORLEVEL. If your program does not set ERRORLEVEL, you
REM may need to find other methods to ensure that the command completes
REM successfully.
REM
REM This example demonstrates using the virus scanning software provided with
REM DOS 6.0 to scan the release diskette for viruses.
REM ============================================================================
MSAV A: /C
IF ERRORLEVEL 1 GOTO ERR00
GOTO DONE
REM ============================================================================
REM Come here if MSAV returns an error!
REM ============================================================================
:ERR00
CLS
ECHO **************************************************************
ECHO ************************** WARNING! **************************
ECHO **************************************************************
ECHO ***** *****
ECHO ***** THE MICROSOFT ANTI VIRUS SCAN OF DRIVE A: FAILED! *****
ECHO ***** THIS MAY MEAN THAT MSAV DETECTED A VIRUS! *****
ECHO ***** *****
ECHO ***** DO NOT USE THE DISKETTE ON ANY SYSTEM UNTIL AFTER *****
ECHO ***** ALL TRACES OF THE POTENTIAL VIRUS HAS BEEN *****
ECHO ***** ELIMINATED. *****
ECHO ***** *****
ECHO ***** YOU SHOULD ALSO PERFORM A COMPLETE VIRUS SCAN OF *****
ECHO ***** OF ALL LOCAL AND NETWORK DRIVES TO DETERMINE THE *****
ECHO ***** CAUSE AND EXTENT OF YOUR INFECTION! *****
ECHO ***** *****
ECHO **************************************************************
ECHO Press any key to continue...
ECHO **************************************************************
PAUSE >NUL:
:DONE