home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lrcs30.zip / examples.zip / LARCSERL.BAT < prev    next >
DOS Batch File  |  1994-05-15  |  4KB  |  77 lines

  1. @ECHO OFF
  2. REM ============================================================================
  3. REM 
  4. REM LARC-S "LARC Examples"
  5. REM LARC-D "Serialization Command File"
  6. REM LARC-V "100"
  7. REM
  8. REM Revision history:
  9. REM kbg 05/15/94 100 - Created.
  10. REM
  11. REM Some general notes about this file follows.
  12. REM
  13. REM This batch file provides a method for you to automate some post-release
  14. REM diskette creation commands.  For example, you can use this command file to
  15. REM embed product serial numbers into released program files.  You can also
  16. REM include commands that will scan your release diskettes for software viruses.
  17. REM
  18. REM LARC allows you complete freedom over the commands you include in this file.
  19. REM Since LARC executes this standard DOS command batch file, you can use any
  20. REM combination of system commands.
  21. REM
  22. REM Normally, ECHO OFF is set to keep things like REM lines from being
  23. REM scrolled up the screen.  Then ECHO commands are used to display progress
  24. REM messages, if necessary.  In addition, piping information to a "progress"
  25. REM file allows you to retain a record of the process for later inspection.
  26. REM
  27. REM Not all programs support piping, so some information may not get saved.
  28. REM You will need test the programs used in this command file to determine if
  29. REM useful information is saved if piping is used.
  30. REM
  31. REM Notice also that you should test DOS ERRORLEVEL after issuing commands
  32. REM whenever possible.  Then use the GOTO statement to branch to special error
  33. REM message display sections.  Make sure you use the PAUSE statement to stop
  34. REM processing whenever an error is detected.  Not all programs (especially
  35. REM older ones) set ERRORLEVEL.  If your program does not set ERRORLEVEL, you
  36. REM may need to find other methods to ensure that the command completes
  37. REM successfully.
  38. REM
  39. REM This example demonstrates using the virus scanning software provided with
  40. REM DOS 6.0 to scan the release diskette for viruses.
  41. REM ============================================================================
  42.  
  43. MSAV A: /C
  44. IF ERRORLEVEL 1 GOTO ERR00
  45. GOTO DONE
  46.  
  47.  
  48.  
  49.  
  50. REM ============================================================================
  51. REM Come here if MSAV returns an error!
  52. REM ============================================================================
  53. :ERR00
  54. CLS
  55. ECHO **************************************************************
  56. ECHO ************************** WARNING! **************************
  57. ECHO **************************************************************
  58. ECHO *****                                                    *****
  59. ECHO ***** THE MICROSOFT ANTI VIRUS SCAN OF DRIVE A: FAILED!  *****
  60. ECHO ***** THIS MAY MEAN THAT MSAV DETECTED A VIRUS!          *****
  61. ECHO *****                                                    *****
  62. ECHO ***** DO NOT USE THE DISKETTE ON ANY SYSTEM UNTIL AFTER  *****
  63. ECHO ***** ALL TRACES OF THE POTENTIAL VIRUS HAS BEEN         *****
  64. ECHO ***** ELIMINATED.                                        *****
  65. ECHO *****                                                    *****
  66. ECHO ***** YOU SHOULD ALSO PERFORM A COMPLETE VIRUS SCAN OF   *****
  67. ECHO ***** OF ALL LOCAL AND NETWORK DRIVES TO DETERMINE THE   *****
  68. ECHO ***** CAUSE AND EXTENT OF YOUR INFECTION!                *****
  69. ECHO *****                                                    *****
  70. ECHO **************************************************************
  71. ECHO                 Press any key to continue...
  72. ECHO **************************************************************
  73. PAUSE >NUL:
  74.  
  75.  
  76. :DONE
  77.