Microsoft KB Archive/65126

Works: Decompressing More Than One File with Setup

PSS ID Number: Q65126 Article last modified on 06-12-1996

2.00

MS-DOS

= SUMMARY =

Some files contained on the Microsoft Works version 2.00 disks are compressed. When the Setup program is used to install Works, it decompresses these files and copies them to the appropriate drive and directory. If at a later time additional files are required, such as supplemental printer drivers, the Setup program can be used to install these files one at a time without having to go through the complete setup procedure.

Note: The SETUP.EXE program cannot be used with DOS wildcards (*) to copy and decompress more than one file at a time. For example, a group of printer drivers CANNOT be copied and decompressed in the following manner:

A: SETUP IBM*.CPR C:.PRD

A workaround does exist that allows you to decompress more than one file at a time. The FOR loop from DOS can be used. To use this procedure, the PATH in the AUTOEXEC.BAT file must point to the DOS directory (for example, PATH C:;C:;etc.).

For example, to install the HPLASER and HPLASER2 printer drivers, type the command below from the A prompt while the disk containing SETUP.EXE and the compressed printer files is inserted in the disk drive. If the printer files and SETUP.EXE reside on separate disks, copy them onto a single disk using the DOS COPY command.

At the A prompt, type the following:

FOR %A IN (HPLASER.CPR HPLASER3.CPR) DO SETUP %A C:%A

To install ALL of the printer drivers that begin with HP (for example, HPLASER2.CPR, HPLASER3.CPR, and HPBAR.CPR), type the following from the A prompt:

FOR %A IN (HP*.CPR) DO SETUP %A C:%A

The %A is a variable name, which is replaced by the filename in the. In this example, the wildcard (*) will be expanded and will replace %A with each filename. The FOR loop procedure will give the decompressed file(s) the necessary .PRD extension that Works looks for.

For further assistance using the FOR loop, consult your DOS manual.

KBCategory: kbprint KBSubcategory: dworkskb Additional reference words:

=
================================================================ Copyright Microsoft Corporation 1996.