home *** CD-ROM | disk | FTP | other *** search
/ Freesoft 1997 May / Freesoft_1997-05_cd.bin / recenz / Antiviry / VIRUSCAN / BOOTSHLD / EXTRA.TXT < prev    next >
Text File  |  1996-03-26  |  6KB  |  131 lines

  1.                         Two Extra Utilities
  2.                         ===================
  3.  
  4.                             GETREPLY.EXE
  5.                             SELFCHEK.EXE
  6.  
  7. GetReply.Exe   Copyright 1995, McAfee Associates, Inc.
  8. ------------------------------------------------------
  9.  
  10. Syntax:
  11.         getreply String_to_display ; List_of_key-strokes
  12.  
  13. GetReply is a utility designed to work in a similar manner as does the
  14. CHOICE.EXE utility that is packaged with modern versions of DOS.
  15.  
  16. GetReply expects two command-line parameters, separated by a semi-colon (;).
  17. The first parameter is the text to display and the second parameter is a set
  18. of allowable key-strokes.  GetReply returns errorlevel 1 if the first key
  19. in the list of allowable key-strokes was pressed; errorlevel 2 if the
  20. second key in the list was pressed; errorlevel 3 for the third key, etc.
  21. If any key NOT in the list of keys is pressed, the user will be rewarded
  22. with a beep from the PC speaker.
  23.  
  24. Examples:
  25.  
  26. getreply Press '1' to logon server_1, '2' for server_2 or 'A' to abort ;12a
  27. getreply Would you like to exit this batch file (Y/N) ;yn
  28.  
  29. In the first example, The user is offered three choices.  The only allowable
  30. key-strokes are, '1', '2' and 'A'.  If '1' is pressed, errorlevel 1 is
  31. returned.  If '2' is pressed, errorlevel 2 is returned.  If 'A' or 'a' is
  32. pressed, errorlevel 3 is returned.  If the key assignments are reversed then
  33. the returned errorlevels would also be reversed.
  34.  
  35. In example 2, the user is asked to press 'Y' and 'N'.  Any other key-stroke 
  36. is rewarded with a beep.  Pressing 'Y' or 'y' returns errorlevel 1 and 
  37. pressing 'N' or 'n' returns errorlevel 2.
  38.  
  39. Returned errorlevel 255 means either no command-line parameter was issued or
  40. the semi-colon used to separate the parameters was not used.
  41.  
  42. Batch File Case Flow:
  43.  
  44.                 getreply Run TCPIP (Y/N)? ;yn
  45.                 echo.
  46.                 if errorlevel 2 goto SkipTCPIP
  47.                 echo Now loading TCPIP
  48.                 goto NextStep
  49.                 :SkipTCPIP
  50.                 echo TCPIP Not Loaded!
  51.                 :NextStep
  52.  
  53.  
  54. SelfChek.Exe   Copyright 1995-1996, McAfee Associates, Inc.
  55. -----------------------------------------------------------
  56.  
  57. Syntax:
  58.         selfchek Path_name_to_packing_list Text_where_search_begins Text_where_search_ends
  59.  
  60. SelfChek is used to verify that all files listed within a packing list
  61. are, indeed, present.
  62.  
  63. SelfChek expects two command-line parameters, separated by empty space.  It
  64. can also take a third parameter, preceded by a forward slash character.  The
  65. first parameter is the path\name of the file used as a packing list.  The
  66. second parameter is used by SelfChek to determine where in the packing list
  67. the search for filenames should begin.  This is important because the top
  68. of this could contain verbage, such as, "Files on This Diskette".  Naturally
  69. "Files on This Diskette" is not the name of a file and, as consequence, if
  70. searched for, would not be found.  The third parameter, which is optional,
  71. can be used to specify where the search for filenames should end.  This way
  72. any text following the listing can be ignored.
  73.  
  74.  
  75. NOTE: Whatever drive\path holds the packing list is presumed to be the
  76. same drive\path to the files list in the packing list.  Therefore, you
  77. MUST supply the complete path\name for your packing list!
  78.  
  79. The packing list needs to be a standard, ASCII test file where each line in
  80. the list is terminated with a standard carriage return.  All text after the
  81. text where search begins must begin with filenames.  Each filename must be
  82. setup into two fields:  The first field occupies eight character spaces,
  83. followed by a single space then, the second field must occupy three spaces
  84. for the file's extension name.  A good method to use to setup the text in
  85. an appropriate manner is to use VALIDATE.EXE to create the list.
  86.  
  87. Example creating a packing list:
  88.         validate c:\program\*.* > c:\packing.lst
  89.  
  90. Once the list is created, use a text editor to add your verbage at the
  91. beginning of the list.
  92.  
  93. Example List named packing.lst:
  94.  
  95.                     BootShield Packing List
  96.                     -----------------------
  97. The following is a list of files on this diskette with their respective
  98. Validation codes:
  99.  
  100. INSTALL  BAT      6986  11-30-95   1:16p   C826   6133
  101. GETREPLY EXE      2034  11-29-95   8:39p   7536   B82F
  102. BSSETUP  EXE    148688  11-21-95   1:54p   4D19   EDAE
  103. BSSHELP  HLP      1743  11-21-95   1:54p   DE5E   853A
  104.  
  105. Now, to have SelfChek search for the existance of the four files listed,
  106. and, assuming all files are on A: drive, type:
  107.         
  108.         SelfChek a:\packing.lst Validation codes:
  109.  
  110. SelfChek will search A: drive for a file named, "packing.lst".  If found,
  111. this file is now examined for the text, "Validation codes:".  Once this
  112. text is found, all non-blank lines are presumed to contain filenames and
  113. these are then determined to either exist or not.  If any of these files
  114. do not exist, SelfChek returns errorlevel 1.  If all of these files exist,
  115. SelfChek returns errorlevel 0 (zero).
  116.  
  117. Returned errorlevel 255 means that there were no parameters used when you
  118. ran SelfChek.  Errorlevel 254 means you did not supply the second parameter
  119. and errorlevel 253 means the packing list was not found.
  120.  
  121. Batch File Case Flow:
  122.  
  123.                 SelfChek a:\packing.lst Validation codes:
  124.                 if errorlevel 1 goto FileMissing
  125.                 echo All files present and accounted for.
  126.                 goto NextStep
  127.                 :FileMissing
  128.                 echo One or more files are missing!
  129.                 :NextStep
  130.  
  131.