home *** CD-ROM | disk | FTP | other *** search
- Welcome!
-
- A simple discussion of the purpose of these programs is all that you
- will find here. I wrote them in QuickPascal to solve a large and tedious
- problem that I had. And I suspect many of you may have as well. I had a
- directory on my hard drive full of archived files that I downloaded. Yet,
- they were in formats that I did not want for my own storage purposes. After
- all, we all have our own preferences right?
- The directory \LZH on my hard drive had over 100 or so .LZH files and
- I wanted them all converted to .ZIP (new v1.01) because the size difference
- between the two formats now is minor but the speed is heavily in favor of
- PKZIP v1.01. So I wanted to convert them all to .ZIP with as little effort
- as possible. I made a \ZIP directory for the newly created .ZIP files to
- end up in and then wrote a batch file to do the conversion. My batch file
- copied the file specified on the command line to a \WORK directory, un-LZHed
- it, deleted the .LZH file, ZIPed it and copied the .ZIP to the \ZIP
- directory. It then deleted all the files in the \WORK directory and it was
- finished. But I had to keep running this batch file once for each file
- and I had to keep typing 'dir' to get another look at the next files.
- Instead, I wrote this program to handle all that for me. It performs
- the same tasks but does it all automatically. It only needs to know 3 things
- before it can do its task. You must tell it the .LZH (or .ARC) directory
- which you can think of as your source directory. It must know the .ZIP
- directory which you may also call your target directory. It must lastly
- know what work directory is available. The work directory should be empty
- at the start of session. The file YES.TXT is simply and y and a CR/LF pair
- that is piped into the DEL *.* command so that you do not have to interact
- at all during the process of conversion. You must also have LHARC, PKZIP
- and PKXARC somewhere in your PATH on your hard drive. My program will search
- all the PATHs to find them and then use them. If it cannot find them, you
- will receive an error message and the program will be terminated.
- It worked wonders during my testing which was not really a test
- because I ran it on the real thing right from the start. 44 .LZH files
- were converted to .ZIP without my doing a thing once the program started
- running. Saved me from an otherwise boring and mindless afternoon of doing
- housekeeping on my system.
- So next time you download a group of files from SIMTEL20, for instance,
- and you want to convert them from .ARC to .ZIP, you are all set. Here is
- what I suggest. Make a directory called C:\ARC, C:\ZIP and C:\WORK. Place
- all your .ARC files in C:\ARC. Place the file ARC2ZIP.EXE and YES.TXT in
- your root directory or where ever (as long as the two files are together).
- Then run ARC2ZIP and tell it \ARC for the .ARC dir, \ZIP for the .ZIP dir
- and \WORK for the work directory. And just sit back and relax.
- I have just finished converting over 400 files from .LZH to .ZIP
- with 'NIL' effort on my part (except for writing the program). If you
- have problems with the program, don't hesitate to send me some Email at the
- address below. If you like the program, also let me know.
-
-
- -- Michael P. Kelly, 2LT U.S. Army Signal Corps
-
- mkelly@blackbird.afit.af.mil
- mkelly@galaxy.afit.af.mil
-
-
-