ARC <-> LZH version 3.0 I wanted to automate the process of converting my ARC files to the new LZH format. So I created this little shell program. I decided that others may benifit from it's use so, I decided to release it as a FREEWARE program. It may be distributed FREELY as long as all files remain in the archive. It is NOT TO BE SOLD or modified. I retain all right to the programs and source code. I take no responsibility for any damages, loss of time, etc. that may result from the use of this program. YOU EXCEPT IT AS IS. It does not contain any viruses, etc. Start the program by double-clicking on ARC2LZH.PRG. After the ABOUT ME dialog appears, just hit return and you will be presented with the main menu. At the top of the dialog box there is a Title bar. It will have "ARC <-> LZH" in it when you first run the program. By clicking on the bar you can switch between "ARC <-> LZH" to "LZH <-> ARC" and back. Version 1.0 only allowed ARC to LZH conversion but, I know there are some people out there who still prefer the ARC format, so I decided to add the ability to convert an LZH file to ARC format. DIRECTORIES AREA: This box contains buttons to change the wroking directories without having to go to the Configuration portion of the program. You can change the following directories. SOURCE: This is where your files that you wish to convert to the other format are located. Your ARC or LZH files are located here. DESTINATION: This is where the program will place your converted files. TEMPORARY: This is where the program temporarily stores the extracted files during the conversion process. EXTRACTED FILES: This is where the program will place the extracted files when the 'RETAIN EXTRACTED FILES' option is selected. Further details below. CONFIGURATION: This will bring up a configuration dialog box. It is where you place all the directory path information. Further details below. OPTIONS HEADING: Under the heading you will find several options. The first four are Radio Buttons or Toggle Switches. The can be toggled on or off. PAUSE: This selection will make the program pause between each file conversion. You will the have the option of continuing the program or halting it and returning to the main menu. If this selection is off, the program will convert all the specified files non stop. DELETE ORIGINAL: This selection will tell the program to delete the original file. That is, if you convert an ARC file to a LZH file, it will delete the ARC file. Why have 2 copies of the same file? With this selection off, the program will not delete the original file. RETAIN DATE: This selection will allow you to retain the original date of creation of the files in the archive. With this selection off, the date of the converted files will not be the original file dates. I haven't determined what date the converted files will have yet. RETAIN EXTRACTED FILES: This selection will allow you to retain the extracted files. In version 1.0, the program would extract the files from the ARC file and place them in the TEMPORARY folder. It would then add them to the LZH file and delete the extracted files. I got tired of converting the files I downloaded and then un-lzhing them. It already extracted them once, why do it again? With this option, it will place the extracted files in a folder of the same name as the file. It will place the folder and files into the directory you choose. This is where the 'EXTRACTED FILES' directory come in. With this selection off, the program will place all the extracted files in the TEMPORARY folder and then delete them when the conversion process is complete. ACCESSORIES: This selection will bring up a standard menu bar in which you will have access to your accessories. I wanted to be able to get to UIS II. FORMAT: This selection will allow you to format a floppy in drive A or B. You will be given the option of A or B, Sides 1 or 2, Tracks 79 or 80 and Sectors 9 or 10. I have not tested this on 5 1/4" disk. *** Execute Program ***: This section allows you to choose programs to execute from the ARC2LZH Shell such as Arc Shell 2.1B from Charles F. Johnson. I had planned on building an ARC/LZH Shell into the program but decided to let you choose your own programs to execute. To add a filename to the field, just click on the words Primary, Alternate or Other. This will bring up a fileselector for you to choose the path and filename of the program to execute. To execute the file, just click on the path and filename field. These fields will be saved when you do a 'Save Configuration'. Convert A File: This selection will allow you to convert a single file. It acts the same way as the batch conversion process but, it only converts a single file. It will use all the information in the configuration section and the switches. It does not however, use the source directory information. You will be presented with a fileselector when you choose this option to choose the filename you want to convert. ARC/LZH OPTINS HEADING: Under this heading you will find several options for listing your ARC or LZH files and testing them. VERBOSE ARC: This selection allows you to get a verbose listing of an ARC file. SHORT ARC: This selection allows you to get a short listing of an ARC file. TEST ARC: This selection will allow you to test the integrity of an ARC file. VERBOSE LZH: This selection allows you to get a verbose listing of a LZH file. SHORT LZH: This selection allows you to get a short listing of a LZH file. TEST LZH: This selection will allow you to test the integrity of a LZH file. INFO: This button will just bring up the About Me dialog box. It is located under the Directories Area. SFX CREATE: This selection will allow you to select an LZH file to convert to a Self-EXtraction LZH file. You must have the program SFX_LZH.PRG in order to do this. It is available on GEnie, other services and most major BBS's. This button is located under the Info button. SFX REMOVE: This selection will allow you to convert a Self-EXtracting LZH file into a normal LZH file. You will need a file called DESELF.PRG (TTP) in order to do this. It is also available on GEnie, other services and most major BBS's. This button is located under the ARC/LZH Area. CONVERT: This button will start the conversion process. SAVE CONFIGURATION: This will save all the directory information, the status of the four Radio Buttons (Pause, Delete Original, Retain Date and Retain Extracted files) and the mode you are in (ARC <-> LZH or LZH <-> ARC) so that the next time you boot the program, the defaults will be set. EXIT: Exit out of the program. When you select the Configuration button, you will be presented with a section in which you can enter the directory path's for all the functions. You can either type them in or click on the title (the area that has the fill pattern in it). If you click on this area, you will be presented with a fileselector to choose your path's. Also in the main menu, you can change the Source, Destination, Temporary and Extracted Files directories. Select EXIT when you are finished. If you start the conversion process and the program starts but then returns to the main menu without seeming to do anything, start checking around. Look at the Configuration area and see if you have everything set up right. This has happened to me once in awhile and I don't know why. Just exit out of the program and re-run it. That has cleared up the glitch for me everytime. I think it is something to do with GFA Basic but, I am not sure. Nothing will be hurt when this happens. I have taken just about every precaution to make this a safe program.ÿ The following files are required in order for you to convert from or to ARC and LZH files. ARC.TTP - The latest version is 6.02. LHARC.TTP - The latest version is .60B. There is another version of LHARC written by another author and I think it is up to 1.02. I have not tested this program with that verison, only version .60b. The following files are optional. SFX_LZH.PRG - This is the file that will convert a LZH file to a self extracting LZH file. DO NOT change the extension to TTP. It is very unforgiving if you do. DESELF.TTP - This is the file that will convert a self extracting LZH file to a normal LZH file. CHANGE the extension to TTP if it isn't already. The configuration file ARC2LZH.CFG is an ASCII file and has the following format. This is only an example. E:\ARC\ Source Directory E:\ARC\ Destination Directory E:\TEMPFILE\*.* Temporary Directory E:\ARC\ARC.TTP ARC.TTP Directory and filename E:\ARC\LHARC.TTP LHARC.TTP Directory and filename E:\ARC\SFX_LZH.PRG SFX_LZH.PRG Directory and filename E:\ARC\DESELF.TTP DESELF.TTP Directory and filename E:\ Extracted Files Directory 0 Status of the Pause Button 0=Off 1=On 1 Status of the Delete Original Button 1 Status of the Retain Date Button 1 Status of the Retain Extracted Files Button 0 Mode 0 = ARC <-> LZH 1 = LZH <-> ARC E:\ARC\ARCSHL21.PRG The Primary program to execute. E:\ARC\UNLZH171.PRG The Alternate program to execute. E:\ARC\OTHER.PRG The Other program to execute. *** Filler, nothing important but must be here. The files in this archive should be. ARC2LZH.PRG ARC2LZH.RSC ARC2LZH.TXT UPDATES.TXT I hope that you get as much use out of this program as I have. If you have any questions, bug reports, etc. Just drop me a line on GEnie or any BBS that has this file that was uploaded by me. The RSC file was designed on a mono monitor but should be alright on a RGB monitor. GEnie Address: R.Watson15 Wayne Watson on the BBSes I visit. US Snail address: Wayne Watson P.O. Box 585 Taylors, SC 29687