DIRCOMP.BAT - a Directory/Application Compressor

This batch uses the PKZIP25 program to compress a directory
and its subdirectories into a zip file then creates a
custom batch that extracts the files, runs a specified
application via the Windows start command, updates the
zip file if anything changed, then removes the uncompressed
files. It is similar in concept to the DIR2BAT program
except creates two files rather than all in a single huge
(and nonfunctional if you accidently edit it) batch file.
Although the prior single file approach has the advantage
of being just one file and running from the desktop
without a visual show of temp files, this is more practical
and allows use of normal zip file managers, uses less
temp space and can automatically update the zip file if
anything changes. Just add the new files to the
whatever.tmp directory while open, or in the case
of saved web pages using Netscape edit in place.

For best results place the dircomp.bat file in a path
directory, c:\windows will do if you don't already have a
directory for path things. To compress an application,
web page or other directory of files with a file inside that
can be launched (does something when double-clicked), go to
a dos prompt and change to the directory containing the files.

If the files are in say d:\page (for example) and when you
run msdos prompt it says c:\> then enter:

     d:
     cd \page

To create a mypage.bat and mypage.zip files that extract
and run say index.html, enter:

     dircomp mypage index.html

This creates mypage.bat and mypage.zip in the root directory
of the current drive. To create the files in another
directory specify the destination directory name after
the file to run:

     dircomp mypage index.html c:\myfiles

Make sure that the first parameter for the output name is
plain with no extension, and the second parameter, the
run file, actually exists. The run file can be any windows
program or associated file or valid command. Use quotes
around the run file parameter if it's a long filename or
a multi-word command.
