Microsoft KB Archive/63149

Works: Decompressing More Than One File with Setup

PSS ID Number: Q63149 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 the 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.

= MORE INFORMATION =

You can use the FOR loop from DOS to install more than one file at once. To use this procedure, the PATH in the AUTOEXEC.BAT file must point to the DOS files 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 one disk together by 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, 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 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.