home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR3 / LUP101.ZIP / DEMO.BAT next >
DOS Batch File  |  1993-12-08  |  9KB  |  196 lines

  1. echo off
  2. cls
  3. echo  This is NOT a fully automatic demonstration.
  4. echo  Unless you are willing to follow some displayed instructions,
  5. echo  you should terminate this script now with ^C.
  6. echo  -
  7. echo  This script creates some directories and files and uses
  8. echo  them to demonstrate some of LUP's unusual features.
  9. echo  These files will require about 16000 bytes of disk space.
  10. echo  For the demonstration to work you need PKUNZIP and PKZIP.
  11. echo  -
  12. pause
  13. echo  Now building files and directories for demonstration.
  14. echo  Stand by for more details.
  15.  
  16. md demo
  17. md demo\subdir
  18.  
  19. echo >demo\x4 This is file X4 and should be in all three paths.
  20. echo >>demo\x4 Note that the digit 3 in the File Lists Browser
  21. echo >>demo\x4 KEY/*** column represents the archive DEMOZ.ZIP.
  22. echo >>demo\x4 This means that there is a copy of X4 in the archive.
  23. echo >>demo\x4 -
  24. echo >>demo\x4 LUP can also display [.ZIP] archive file contents.
  25. echo >>demo\x4 Unless you are already doing so, examine DEMOZ.ZIP[.ZIP]\X4
  26. echo >>demo\x4 now.  You may notice a slight pause while PKUNZIP is called to
  27. echo >>demo\x4 extract the file.
  28. echo >>demo\x4 -
  29. echo >>demo\x4 You could also copy this file to another directory,
  30. echo >>demo\x4 and it would be extracted automaticly from the archive file.
  31. echo >>demo\x4 -
  32. echo >>demo\x4 When you are finished, read file X5.
  33.  
  34. echo >demo\subdir\x7 This is file x7.  It should be in DEMOZ.ZIP only.
  35. echo >>demo\subdir\x7 it was created originally in DEMO,
  36. echo >>demo\subdir\x7 then added to DEMOZ.ZIP, then deleted from DEMO.
  37. echo >>demo\subdir\x7 -
  38. echo >>demo\subdir\x7 Now read X8.
  39.  
  40. echo >demo\subdir\x8 LUP also supports archive files within archive files!
  41. echo >>demo\subdir\x8 To demonstrate this, return to the File Lists Browser
  42. echo >>demo\subdir\x8 and move the cursor to NESTED.ZIP and press [Enter].
  43. echo >>demo\subdir\x8 Then read X9.
  44.  
  45. echo >x9 This is file X9.  It is in archive file NESTED.ZIP which is in
  46. echo >>x9 the SUBDIR subdirectory of archive file DEMOZ.ZIP.
  47. echo >>x9 You could also copy this file to another directory, and it would be
  48. echo >>x9 extracted automaticly from both archive files which contain it.
  49. echo >>x9 Archive files and subdirectories can be nested in any combination
  50. echo >>x9 subject only the path length limitations of DOS.
  51. echo >>x9 -
  52. echo >>x9 -
  53. echo >>x9 -
  54. echo >>x9 The demonstration is over.  Thank you for your attention.
  55. echo >>x9 LUP has many other features which are not covered by this
  56. echo >>x9 demonstration.  Feel free to explore these features, now or later.
  57. echo >>x9 The F10 key makes this easy.
  58. echo >>x9 -
  59. echo >>x9 The temporary demonstration files will be deleted when you quit LUP.
  60. echo >>x9 To quit LUP go to the File Lists Browser and press the [Esc] key.
  61. pkzip -a demo\subdir\nested.zip x9
  62. del x9
  63.  
  64. pkzip -a -p -r demoz.zip demo\*.*
  65.  
  66. del demo\subdir\nested.zip
  67.  
  68. del demo\subdir\x7
  69.  
  70. echo >demo\x2 This is file X2 and should be in DEMO and DEMO1 as indicated
  71. echo >>demo\x2 by the digits 1 and 2 in the File Lists Browser KEY/*** column.
  72. echo >>demo\x2 If they are covered then you may press [Esc] a couple of times
  73. echo >>demo\x2 to see them and then redisplay this file.
  74. echo >>demo\x2 -
  75. echo >>demo\x2 Read this file from both DEMO and DEMO1 to verify that
  76. echo >>demo\x2 the two copies are identical.  Do this now.
  77. echo >>demo\x2 When you are finished, read file X3.
  78.  
  79. echo >demo\x3 This is file X3 and should exist in DEMO and DEMO1.
  80. echo >>demo\x3 However note that digits 1 and 2 in the KEY/*** column
  81. echo >>demo\x3 of the File Lists Browser are on different lines.
  82. echo >>demo\x3 The program has determined that the two file copies
  83. echo >>demo\x3 can not possibly be the same by the fact that the file
  84. echo >>demo\x3 sizes, and possibly the time stamps, are different.
  85. echo >>demo\x3 The file listing shows this with a multiline list element.
  86. echo >>demo\x3 -
  87. echo >>demo\x3 The files were made different by creating the original file
  88. echo >>demo\x3 in the DEMO subdirectory, copying the file to DEMO1,
  89. echo >>demo\x3 and finally appending a single line to the copy in DEMO.
  90. echo >>demo\x3 Verify by examination that these files are different.
  91. echo >>demo\x3 -
  92. echo >>demo\x3 When you are finished, read file X4.
  93. echo >>demo\x3 This should be the last line in file DEMO1\X3.
  94.  
  95. echo >demo\subdir\x6 This is file X6.  Congratulations.  You made it.
  96. echo >>demo\subdir\x6 The File Lists Browser is now displaying the SUBDIR
  97. echo >>demo\subdir\x6 subdirectories of where you were.  Note several things:
  98. echo >>demo\subdir\x6   1. DEMO/SUBDIR is a normal DOS directory.
  99. echo >>demo\subdir\x6   2. DEMO1/SUBDIR does not exist.  However it still
  100. echo >>demo\subdir\x6      appears as a place holder in the list of paths.
  101. echo >>demo\subdir\x6   3. DEMOZ.ZIP[.ZIP]/SUBDIR is a subdirector within
  102. echo >>demo\subdir\x6      a [.ZIP] archive file.  LUP supports the display
  103. echo >>demo\subdir\x6      of subdirectories in archives.
  104. echo >>demo\subdir\x6 -
  105. echo >>demo\subdir\x6 LUP can also display files, such as X7, which are in
  106. echo >>demo\subdir\x6 subdirectories in archives.  Read X7 now.
  107.  
  108. md demo1
  109.  
  110. copy demo\*.* demo1
  111.  
  112. echo >>demo\x3 This should be the last line in file DEMO\X3.
  113.  
  114. echo >demo\x1 This is file X1 and it exists in the DEMO subdirectory only,
  115. echo >>demo\x1 as indicated by the '1' in the KEY and *** columns of the
  116. echo >>demo\x1 File Lists Browser.
  117. echo >>demo\x1 -
  118. echo >>demo\x1 Next you should read file X2.  
  119. echo >>demo\x1 Because there is a copy of X2 in two places, DEMO and DEMO1,
  120. echo >>demo\x1 you will be prompted to select which place to read it from.  
  121. echo >>demo\x1 You may select either one.
  122. echo >>demo\x1 Read X2 now.  Press the [Esc] key to quit examining this file.
  123.  
  124. echo >demo\x5 Next we will examine the SUBDIR subdirectories.
  125. echo >>demo\x5 This requires the following command sequence:
  126. echo >>demo\x5   1.  Press [Esc] to quit to the File Lists Browser.
  127. echo >>demo\x5   2.  Move the cursor to SUBDIR.
  128. echo >>demo\x5   3.  Press [Enter].  This will cause the File Lists Browser
  129. echo >>demo\x5       to display the SUBDIR subdirectories.
  130. echo >>demo\x5 When those subdirectories are being displayed
  131. echo >>demo\x5 examine the file X6.
  132. echo >>demo\x5 -
  133. echo >>demo\x5 Begin the command sequence now.
  134.  
  135. cls
  136. echo  This script, DEMO.BAT, is a batch file which demonstrates some of the
  137. echo  unusual features of LUP.  These features are:
  138. echo    1.  Multiple directory browsing.
  139. echo    2.  [.ZIP] archive support.  This includes accessing archive
  140. echo        directories, subdirectories, and nested archives for
  141. echo        browsing and copying files from within archives.
  142. echo        Extractions are performed automaticly as needed.
  143. echo  -
  144. echo  This script creates some files and subdirectories
  145. echo  in the default directory and displays instructions for you to
  146. echo  follow to continue the demonstration.  These instructions lead to
  147. echo  other files, other instructions, etc.  The demonstration is not
  148. echo  fully automated.  It depends on your ability to follow instructions.
  149. echo  It also requires PKUNZIP and PKZIP for the full demonstration to work.
  150. echo  -
  151. pause
  152. cls
  153. echo  LUP will be called with the command line:
  154. echo    LUP DEMO DEMO1 DEMOZ.ZIP[.ZIP]
  155. echo  LUP is the program name.  The remainder of the line specifies
  156. echo  three particular file lists to be displayed by LUP.
  157. echo  DEMO and DEMO1 are regular DOS directories.
  158. echo  DEMOZ.ZIP[.ZIP] is a (.zip) file.  The "[.ZIP]" is needed to tell
  159. echo  LUP that the file DEMOZ.ZIP is a (.zip) file because:
  160. echo    1.  DOS directory names can have extensions, even ".ZIP".
  161. echo    2.  Not all (.zip) files have ".ZIP" extensions.
  162. echo        For example a self extracting (.zip) file might end in ".EXE".
  163. echo  -
  164. echo  The files and directories needed for the demonstration have been built.
  165. echo  LUP will begin after you press a key.
  166. echo  When LUP begins you should use the [Up Arrow] and [Down Arrow]
  167. echo  keys to move the cursor to the file X1 and then press the [Enter] key.
  168. echo  This will cause file X1 to be displayed.
  169. echo  Read that file for further instructions.
  170. echo  -
  171. pause
  172. LUP DEMO DEMO1 DEMOZ.ZIP[.ZIP]
  173.  
  174. echo Deleting Demonstration files.
  175.  
  176. del demo1\x4
  177. del demo1\x3
  178. del demo1\x2
  179. rd demo1
  180.  
  181. del demoz.zip
  182.  
  183. del demo\subdir\x8
  184. del demo\subdir\x6
  185. rd demo\subdir
  186.  
  187. del demo\x5
  188. del demo\x4
  189. del demo\x3
  190. del demo\x2
  191. del demo\x1
  192. rd demo
  193.  
  194. echo Demonstration files deleted.  Demonstration done.
  195.  
  196.