home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 8 / CDASC08.ISO / VRAC / AFE11.ZIP / VARS.TXT < prev   
Text File  |  1993-09-06  |  6KB  |  138 lines

  1. Vars.txt
  2. --------
  3.  
  4. Variables that the program uses throughout are on lines 8 thru 20 of
  5. AFE.CMD. The purpose of these definitions is so that you will only have
  6. to edit them in one place.  Modify only what is to the right of the
  7. = sign.
  8.  
  9. The first thing you will need to do to make the program work, is to
  10. define these variables for drives, directories, filenames, and program 
  11. names for your particular system.
  12.  
  13. Here is my best explanation of what they represent so you can modify
  14. them to suit your needs.
  15.  
  16. A general rule: don't forget the 's where I have them!
  17.  
  18.  
  19. Programs
  20. --------
  21.  
  22. UNZIPPER = 'unzip -oj'
  23.  
  24. The unzip command and args.  I use the PD version of UNZIP for OS/2.
  25. The rest of the program assumes that it's okay to overwrite existing
  26. files of the same name in the directory that you will define later. I
  27. also prefer that the ZIP file doesn't create subdirectories.  If you
  28. omit this restriction, you're opening a can of worms with this program.
  29.  
  30. ZIPPER = 'zip -oj9'
  31.  
  32. The ZIP command and args.  I'm using the PD ZIP program, too.  Again,
  33. I assume that it's okay to overwrite existing files within an archive I
  34. am updating (You will be warned if you try to create a NEW archive and one
  35. already exists with the same name).  Remember that you can view the
  36. contents of the archive before you do anything to it. I don't want to
  37. store any directory information, and I use maximum compression.
  38.  
  39. UNLZHER = 'lh2 x'
  40.  
  41. The unLZH command and eXtract option.  I am using the OS/2 PD version.
  42. (In fact, the only OS/2 version  I don't remember the original name of
  43. the program, but I renamed it LH2.EXE.
  44.  
  45. LZHER = 'lh2 a'
  46.  
  47. The command and argument to create or add to an LZH archive.  Using the
  48. same program as mentioned above.
  49.  
  50. SCANNER = 'd:\ref\scan 'workdir'/A/BELL/NOPAUSE/REPORT 'SCANRPT''
  51.  
  52. This is actually the entire command line for running SCAN.  I renamed
  53. McAfee's OS2SCAN.EXE to SCAN.EXE and provide the path to the program.
  54. I will explain the 'workdir' and 'SCANRPT' which are embedded in the
  55. command line, later.  I won't explain the options I use, I assume that
  56. you can read the OSCANxx.DOC, but the program assumes these options
  57. are being used and some of the code depends on the results, so unless
  58. you are going to modidify the program (AFE.CMD) I suggest you use
  59. OS2SCAN and stick with these options.  Of course, you can change the
  60. path and filespec for the SCAN program to suit your system.
  61.  
  62.  
  63. Drives/Directories/Filenames/Etc.
  64. ---------------------------------
  65.  
  66. I do all my data file work on my d: drive, but you are not restricted by
  67. the program from using directories across drives, except that the 
  68. "WORKDIR" should be on the "WORKDRIVE".
  69.  
  70. WORKDIR = 'd:\$temp'
  71.  
  72. This is a temporary directory that the program creates, and does just
  73. about all its work in.  It is removed automatically by the program.
  74. Remember the SCANNER variable?  You can see that when the program scans
  75. an archive, this is the directory where the archive is expanded to for
  76. test, as well as just about everything else, initially.
  77.  
  78. WORKDRIVE = 'd:'
  79.  
  80. The drive on which the WORKDIR is created.
  81.  
  82. UNARCDIR = 'd:\temp'
  83.  
  84. This is the directory (it's actually a permanent directory) where you
  85. want to put the expanded files from an archive.
  86.  
  87. PICKDIR = 'd:\temp'
  88.  
  89. This directory is where the program will (as the default) look for files
  90. to create or add to an archive.  When you  use the program to create or
  91. update an archive one of your options is to use all the files in this
  92. directory. The other option you are presented with, is to select files
  93. individually to add to the list of files to make up or add to an archive.
  94. If you select this option, the program will give you a File Selection
  95. Dialog in the PICKDIR by default.  You can, however click on the dialog
  96. box to change to another place to grab a file.
  97.  
  98. Note: it doesn't *have* to be the same as the UNARCDIR.
  99.  
  100. FILESDIRNAME = 'TEMP dir'
  101.  
  102. This really isn't a path.  It's actually a variable that is used to fill
  103. the titlebar of the dialog box that you are presented with when you
  104. choose to add to or create an archive.  It is supposed to represent the
  105. PICKDIR. Note that there is very limited space on this particular
  106. titlebar, But it won't hurt anything but cosmetics if you make it too
  107. long.
  108.  
  109. ARCDIR = 'd:\dlf'
  110.  
  111. This is where I normally keep my downloaded archive files until I stash
  112. them away.  Whatever you define here will cause three things.  First,
  113. this is the default directory where the program will look for archives
  114. to expand.  However, you can alternatively switch somewhere else from 
  115. the files dialog box.  Secondly, this is where the program by default
  116. will look first for an archive to update when you have selected that
  117. activity.  Third, when you create a new archive, this is the directory
  118. where the program will put it.
  119.  
  120. SCANRPT = 'd:\dlf\arcscan.rpt'
  121.  
  122. This is the fully qualified filespec for the report file that SCAN will
  123. generate.  Note that the program will delete this file automatically,
  124. except when SCAN detects a problem.  You can put this file anywhere you
  125. want, but don't put it in the 'WORKDIR'.
  126.  
  127. CHIRP = y
  128.  
  129. This is a very quiet, unobtrusive little chirp that sounds when a message
  130. that requires your attention is put on the screen, such as when you choose
  131. to create an new archive and one of the same name already exists.  If you
  132. don't want any chirp, then set this to "n".  Before you automatically set
  133. this to "n", try the above scenario.
  134.  
  135. Note: This WILL NOT change the not-so-unobtrusive noise that is made when
  136. a virus is detected!
  137.  
  138.