home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
UTIL_ARC
/
LUP102.ZIP
/
DEMO.BAT
next >
Wrap
DOS Batch File
|
1994-01-27
|
8KB
|
193 lines
echo off
cls
echo This is NOT a fully automatic demonstration.
echo Unless you are willing to follow some displayed instructions,
echo you should terminate this script now with ^C.
echo -
echo This script creates some directories and files and uses
echo them to demonstrate some of LUP's unusual features.
echo These files will require about 16000 bytes of disk space.
echo For the demonstration to work you need PKUNZIP and PKZIP.
echo -
pause
echo Now building files and directories for demonstration.
echo Stand by for more details.
md demo
md demo\subdir
echo >demo\x4 This is file X4 and should be in all three paths.
echo >>demo\x4 Note that the digit 3 in the File Lists Viewer
echo >>demo\x4 KEY/*** column represents the archive DEMOZ.ZIP.
echo >>demo\x4 This means that there is a copy of X4 in the archive.
echo >>demo\x4 -
echo >>demo\x4 LUP can also display archive file contents.
echo >>demo\x4 Unless you are already doing so, examine DEMOZ.ZIP\X4
echo >>demo\x4 now. You may notice a slight pause while PKUNZIP is called to
echo >>demo\x4 extract the file.
echo >>demo\x4 -
echo >>demo\x4 You could also copy this file to another directory,
echo >>demo\x4 and it would be extracted automaticly from the archive file.
echo >>demo\x4 -
echo >>demo\x4 When you are finished, read file X5.
echo >demo\subdir\x7 This is file x7. It should be in DEMOZ.ZIP only.
echo >>demo\subdir\x7 it was created originally in DEMO,
echo >>demo\subdir\x7 then added to DEMOZ.ZIP, then deleted from DEMO.
echo >>demo\subdir\x7 -
echo >>demo\subdir\x7 Now read X8.
echo >demo\subdir\x8 LUP also supports archive files within archive files!
echo >>demo\subdir\x8 To demonstrate this, return to the File Lists Viewer
echo >>demo\subdir\x8 and move the cursor to NESTED.ZIP and press [Enter].
echo >>demo\subdir\x8 Then read X9.
echo >x9 This is file X9. It is in archive file NESTED.ZIP which is in
echo >>x9 the SUBDIR subdirectory of archive file DEMOZ.ZIP.
echo >>x9 You could also copy this file to another directory, and it would be
echo >>x9 extracted automaticly from both archive files which contain it.
echo >>x9 Archive files and subdirectories can be nested in any combination
echo >>x9 subject only the path length limitations of DOS.
echo >>x9 -
echo >>x9 -
echo >>x9 -
echo >>x9 The demonstration is over. Thank you for your attention.
echo >>x9 LUP has many other features which are not covered by this
echo >>x9 demonstration. Feel free to explore these features, now or later.
echo >>x9 The F10 key makes this easy.
echo >>x9 -
echo >>x9 The temporary demonstration files will be deleted when you quit LUP.
echo >>x9 To quit LUP go to the File Lists Viewer and press the [Esc] key.
pkzip -a demo\subdir\nested.zip x9
del x9
pkzip -a -p -r demoz.zip demo\*.*
del demo\subdir\nested.zip
del demo\subdir\x7
echo >demo\x2 This is file X2 and should be in DEMO and DEMO1 as indicated
echo >>demo\x2 by the digits 1 and 2 in the File Lists Viewer KEY/*** column.
echo >>demo\x2 If they are covered then you may press [Esc] a couple of times
echo >>demo\x2 to see them and then redisplay this file.
echo >>demo\x2 -
echo >>demo\x2 Read this file from both DEMO and DEMO1 to verify that
echo >>demo\x2 the two copies are identical. Do this now.
echo >>demo\x2 When you are finished, read file X3.
echo >demo\x3 This is file X3 and should exist in DEMO and DEMO1.
echo >>demo\x3 However note that digits 1 and 2 in the KEY/*** column
echo >>demo\x3 of the File Lists Viewer are on different lines.
echo >>demo\x3 The program has determined that the two file copies
echo >>demo\x3 can not possibly be the same by the fact that the file
echo >>demo\x3 sizes, and possibly the time stamps, are different.
echo >>demo\x3 The file listing shows this with a multiline list element.
echo >>demo\x3 -
echo >>demo\x3 The files were made different by creating the original file
echo >>demo\x3 in the DEMO subdirectory, copying the file to DEMO1,
echo >>demo\x3 and finally appending a single line to the copy in DEMO.
echo >>demo\x3 Verify by examination that these files are different.
echo >>demo\x3 -
echo >>demo\x3 When you are finished, read file X4.
echo >>demo\x3 This should be the last line in file DEMO1\X3.
echo >demo\subdir\x6 This is file X6. Congratulations. You made it.
echo >>demo\subdir\x6 The File Lists Viewer is now displaying the SUBDIR
echo >>demo\subdir\x6 subdirectories of where you were. Note several things:
echo >>demo\subdir\x6 1. DEMO/SUBDIR is a normal DOS directory.
echo >>demo\subdir\x6 2. DEMO1/SUBDIR does not exist. However it still
echo >>demo\subdir\x6 appears as a place holder in the list of paths.
echo >>demo\subdir\x6 3. DEMOZ.ZIP/SUBDIR is a subdirectory within
echo >>demo\subdir\x6 a [.ZIP] archive file. LUP supports the display
echo >>demo\subdir\x6 of subdirectories in archives.
echo >>demo\subdir\x6 -
echo >>demo\subdir\x6 LUP can also display files, such as X7, which are in
echo >>demo\subdir\x6 subdirectories in archives. Read X7 now.
md demo1
copy demo\*.* demo1
echo >>demo\x3 This should be the last line in file DEMO\X3.
echo >demo\x1 This is file X1 and it exists in the DEMO subdirectory only,
echo >>demo\x1 as indicated by the '1' in the KEY and *** columns of the
echo >>demo\x1 File Lists Viewer.
echo >>demo\x1 -
echo >>demo\x1 Next you should read file X2.
echo >>demo\x1 Because there is a copy of X2 in two places, DEMO and DEMO1,
echo >>demo\x1 you will be prompted to select which place to read it from.
echo >>demo\x1 You may select either one.
echo >>demo\x1 Read X2 now. Press the [Esc] key to quit examining this file.
echo >demo\x5 Next we will examine the SUBDIR subdirectories.
echo >>demo\x5 This requires the following command sequence:
echo >>demo\x5 1. Press [Esc] to quit to the File Lists Viewer.
echo >>demo\x5 2. Move the cursor to SUBDIR.
echo >>demo\x5 3. Press [Enter]. This will cause the File Lists Viewer
echo >>demo\x5 to display the SUBDIR subdirectories.
echo >>demo\x5 When those subdirectories are being displayed
echo >>demo\x5 examine the file X6.
echo >>demo\x5 -
echo >>demo\x5 Begin the command sequence now.
cls
echo This script, DEMO.BAT, is a batch file which demonstrates some of the
echo unusual features of LUP. These features are:
echo 1. Multiple directory browsing.
echo 2. Archive file support using [.ZIP] files as examples.
echo This includes accessing archive directories,
echo subdirectories, and nested archives for
echo browsing and copying files from within archives.
echo Extractions are performed automaticly as needed.
echo -
echo This script creates some files and subdirectories
echo in the default directory and displays instructions for you to
echo follow to continue the demonstration. These instructions lead to
echo other files, other instructions, etc. The demonstration is not
echo fully automated. It depends on your ability to follow instructions.
echo It also requires PKUNZIP and PKZIP for the full demonstration to work.
echo -
pause
cls
echo LUP will be called with the command line:
echo LUP DEMO DEMO1 DEMOZ.ZIP
echo LUP is the program name. The remainder of the line specifies
echo three particular file lists to be displayed by LUP.
echo DEMO and DEMO1 are regular DOS directories.
echo DEMOZ.ZIP is a (.zip) file.
echo -
echo The files and directories needed for the demonstration have been built.
echo LUP will begin after you press a key.
echo When LUP begins you should use the [Up Arrow] and [Down Arrow]
echo keys to move the cursor to the file X1 and then press the [Enter] key.
echo This will cause file X1 to be displayed.
echo Read that file for further instructions.
echo -
pause
LUP DEMO DEMO1 DEMOZ.ZIP
echo Deleting Demonstration files.
del demo1\x4
del demo1\x3
del demo1\x2
rd demo1
del demoz.zip
del demo\subdir\x8
del demo\subdir\x6
rd demo\subdir
del demo\x5
del demo\x4
del demo\x3
del demo\x2
del demo\x1
rd demo
echo Demonstration files deleted. Demonstration done.