Next: Using Zipcode and Lynx images, Previous: “Autostarting” an image, Up: Using disk and tape images [Contents][Index]

#### 5.5.2 Using compressed files

It is also possible to attach disk or tape images that have been compressed through various algorithms; compression formats are identified from the file extension. The following formats are supported (the expected file name extension is in parenthesis):

- GNU Zip (`.gz` or `.z`);
- BZip version 2 (`.bz2`);
- PkZip (`.zip`);
- GNU Zipped TAR archives (`.tar.gz`, `.tgz`);
- Zoo (`.zoo`).

PkZip, `tar.gz`, `lha` and `zoo` support is read-only and always uses the first `T64` or `D64` file in the archive. So archives containing multiple files will always be handled as if they contain only a single file.

Windows and DOS don’t contain the needful programs to handle compressed archives. Get gzip and unzip for Windows and for DOS at http://infozip.sourceforge.net. Don’t use pkunzip for DOS, it doesn’t work. The programs to use BZip2 archives may be found at https://sourceware.org/bzip2/. Just put the programs (unzip.exe, gzip.exe, bzip2.exe) into a directory of your search path (e.g. C:\DOS or C:\WINDOWS\COMMAND; have a look at the PATH variable).