The Graham Utilities for OS/2 - Version 2


[Warpspeed]

[Table of Contents] [Index] [Previous] [Next]


Appendix C - 2LZH.INI

2LZH.INI is a text file which enables the program 2LZH to be dynamically configured. It is a text file which can be edited by any text editor. It is used to configure the archivers and virus scanning software. If 2LZH has any problems with the information in 2LZH.INI, it will continue with its default values. The default values are the same as those specified by 2LZH.INI.

Archives Section

To configure 2LZH for a specific archive format you need to do the following:

1)
Add a section name to the entry "Sections" under the section "[Archives]".
2)
Add the same section name, and configure the entries "Executable", "Extension" and "Switches" as appropriate.

For example, if you wished to configure 2LZH to use ARC2, (an OS/2 version of ARC that manipulates .ARC files) you would add ARC to the "Sections" entry under the "[Archives]" section.

For example:

[Archives]
Sections=ARJ ZIP ZOO ARC
You would also add an "[ARC]" section, and then configure the "Executable", "Extensions" and "Switches" entries.

For example:

[ARC]
Executable=arc2.exe
Extension=.ARC
Switches=x
The "Executable" entry is the actual program which does the unarcing of the archives. This program must be accessible by your path statement in your CONFIG.SYS file.

The "Extension" entry is the extension of the archive. In this example, 2LZH would look for *.ARC files.

The "Switches" entry specifies the switches used by the archive program - which is specified by the "Executable" entry to actually unpack the archive.

Virus Section

The 2LZH.INI file also configures 2LZH to use virus scanning software. This is used if the -v switch is specified. 2LZH searches for a section "[Virus]" and uses the "Executable" and "Switches" entries.

The entry "Executable" is the actual program which does the virus scanning of the unpacked file. It must be accessible by your path statement as specified in your CONFIG.SYS file.

The "Switches" entry specifies the switches used by the virus scanning software.

By default, 2LZH.INI is configured to use OS2SCAN by McAfee Associates.

2LZH.INI The supplied 2LZH.INI file looks similar to:

;
;   2LZH - Convert .ARJ, .ZIP and .ZOO etc to .LZH
;

[Archives] Sections=ARJ ZIP

[ARJ] Executable=unarj.exe Extension=.ARJ Switches=x

[ZIP] Executable=unzip.exe Extension=.ZIP Switches=-d

;[ZOO] ;Executable=zoo.exe ;Extension=.ZOO ;Switches=x

[VIRUS] Executable=os2scan.exe Switches=/bell /noexpire /nopause *