How to Extract Original Compressed Windows FilesLast reviewed: March 20, 1998Article ID: Q129605 |
********************************************************************
BETA INFORMATION BETA INFORMATION BETA INFORMATION BETA This article discusses a Beta release of a Microsoft product. The information in this article is provided as-is and is subject to change without notice. No formal product support is available from Microsoft for this Beta product. For information about obtaining support for a Beta release, please see the documentation included with the Beta product files, or check the Web location from which you downloaded the release. BETA INFORMATION BETA INFORMATION BETA INFORMATION BETA******************************************************************** The information in this article applies to:
SUMMARYWindows 95 is available on CD-ROM or floppy disks, both of which contain compressed cabinet files. Windows 98 is available on CD-ROM, and it also contains compressed cabinet files. These cabinet files contain the actual Windows files. Because this method of compression differs from that used with versions of Windows before Windows 95, there is a tool (Extract.exe) to decompress individual Windows files. You can use the Extract tool to decompress Windows files from the original media. This article describes how to use the Extract tool and contains the following sections that apply to both Windows 95 and Windows 98:
MORE INFORMATIONTo use the Extract tool, first copy the Extract.exe file from disk 1 to the root folder of drive C if you are using Windows 95. Note that you can skip this step if you are using Windows 98 and you have already created a Windows 98 Startup disk. To create a Windows 98 Startup disk, see the "Using a Windows 98 Startup Disk to Access a CD-ROM and Extract Files" section of this article. To copy the Extract.exe file from disk 1 to the root folder of drive C, type the following command at the MS-DOS prompt
copy <sdrive>:\extract.exe <hdrive>:\where <sdrive> is the drive that contains the Windows 95 CD-ROM or disk and <hdrive> is your hard disk. For example:
copy a:\extract.exe c:\The Extract tool has only a command-line interface (that is, there is no GUI interface). Because Windows does not allow you to delete or overwrite a file that is in use, you may have to restart your computer in Command Prompt Only mode before you can use the Extract tool. If you receive an "Access denied" error message when you try to delete a file before using the Extract tool, or when you use the Extract tool to overwrite an existing file, follow these steps to restart your computer in Command Prompt Only mode and then use the Extract tool:
Location of Cabinet FilesFrom a CD-ROM: If you are extracting Windows files from a CD-ROM, all of the cabinet files are located in the Win95 or Win98 folder. For example, if you want to extract a Windows 95 file from the Win95_02.cab file, and the CD-ROM drive is drive D, use the following <cabinet> parameter for the EXTRACT command:
d:\win95\win95_02.cabFrom Disks: If you are extracting Windows 95 files from disks, use the following table to determine which disk contains the cabinet file you want:
Cabinet File Disk ----------------------- Mini.cab Disk 1 Precopy1.cab Disk 1 Precopy2.cab Disk 2 Win95_nn.cab Disk nnFor example, if you want to extract a file from the Win95_10.cab file on a disk in drive A, insert disk 10 in drive A and use the following <cabinet> parameter for the EXTRACT command:
a:\win95_10.cab Extracting Windows Files from an Unknown Cabinet FileExtracting a Single File: If you do not know which cabinet file contains the Windows file you want to extract, use the following command to search all the cabinet files in sequential order and then extract the file once it is found:
extract /a <cabinet> <filename> /l <destination>For example, to extract the Unidrv.dll file from disks in drive A into the Windows\System folder on drive C, use the following command:
extract /a a:\win95_02.cab unidrv.dll /l c:\windows\systemThe /a switch causes the Extract tool to search all the cabinet files starting with the first cabinet file mentioned on the command line (in this example, Win95_02.cab). Insert the disk containing the first cabinet file mentioned in the appropriate disk drive. You will be prompted to insert additional disks as they are needed. If you are extracting from a CD-ROM you must modify the <cabinet> parameter accordingly to reflect the actual location of the cabinet files. NOTE: In Windows 98, you should use the Base4.cab file in command lines with the /a parameter. If the Extract tool cannot find the specified Windows 95 file in any of the cabinet files, the file may be located in the Mini.cab, Precopy1.cab, or Precopy2.cab cabinet file. Use the following two commands to search these cabinet files:
Extracting Multiple Files: To extract multiple files, use the same syntax as above, but use a wildcard designation for the <filename> parameter. For example, to extract all the Windows 95 files with a .txt extension from disks in drive A to the Windows folder on drive C, use the following command:
extract /a a:\win95_02.cab *.txt /l c:\windowsNote that if you are extracting from a CD-ROM, you must modify the <cabinet> parameter in this command accordingly.
Finding Windows FilesFinding a Single File: You can use the Extract tool to determine which cabinet file contains a particular Windows file. When you use this syntax, the Extract tool searches the cabinet files but does not extract the file once it is found:
extract /a /d <cabinet> <filename>For example, to find the Windows 95 Unidrv.dll file, starting with the Win95_02.cab file, using disks in the A drive, use the following command:
extract /a /d a:\win95_02.cab unidrv.dllFinding Multiple Files: To find multiple files, use the same syntax as above, but use a wildcard designation for the <filename> parameter. For example, to find all the Windows 95 files with a .txt extension using disks in the A drive, use the following command:
extract /a /d a:\win95_02.cab *.txt Extracting Windows Files from a Known Cabinet FileExtracting a Single File: If you know which cabinet file contains the file you want to extract, use the following syntax to extract the file:
extract <cabinet> <filename> /l <destination>For example, to extract the Windows 95 Unidrv.dll file from the Win95_10.cab file on a disk in drive A to the Windows\System folder on drive C, use the following command:
extract a:\win95_10.cab unidrv.dll /l c:\windows\systemExtracting Multiple Files: To extract multiple files from a cabinet file, use the same syntax as above, but use a wildcard designation for the <filename> parameter. For example, to extract all the Windows 95 files that have a .txt extension from the Win95_06.cab file on a disk in drive A to the Windows folder on drive C, use the following command:
extract a:\win95_06.cab *.txt /l c:\windows\system Listing the Contents of Cabinet FilesYou can use the Extract tool to list the contents of cabinet files without actually extracting any files. To display the contents of a cabinet file, use the following syntax:
extract /d <cabinet>To display the contents of all the cabinet files in a cabinet chain, starting with the specified cabinet file, use the following syntax:
extract /a /d <cabinet>For example, to display the contents of all the Windows 95 cabinet files using disks in drive A, starting with the Win95_02.cab file, use the following command:
extract /a /d a:\win95_02.cabNOTE: The /a switch causes the Extract tool to list the contents of all the cabinet files in the cabinet chain, starting with the first cabinet file mentioned.
Copying Cabinet Files to a Hard DiskAlthough you cannot make copies of the original Windows 95 floppy disks using the utilities that are included with Windows 95, you can use the Extract tool to copy cabinet files from a CD-ROM or floppy disk to your hard disk. To do so, use the following syntax:
extract /c <cabinet> <destination>For example, to copy the Win95_02.cab file from a disk in drive A to the Windows folder on drive C, use the following command:
extract /c a:\win95_02.cab c:\windowsNOTE: You cannot use the /a and /c switches at the same time. Therefore, you cannot copy all the cabinet files using a single command.
Other Optional Switches
System File Checker ToolWindows 98 includes a System File Checker tool. You can use this tool to verify the integrity of your operating system files, to restore them if they are damaged, or to extract compressed files from the Windows 98 CD-ROM. To use System File Checker to extract a compressed file from the Windows 98 CD-ROM, follow these steps:
Using a Windows 98 Startup Disk to Access a CD-ROM and Extract FilesWhen you install Windows 98, you are prompted to create a Windows 98 Startup disk. A feature included in the Windows 98 Startup disk is support for CD-ROM drives. This may be of benefit if you need to extract a file from the Windows 98 CD-ROM but you are unable to use System File Checker (for example, if your computer does not start properly). NOTE: The Windows 98 Startup disk provides support for most types of CD-ROM drives, including IDE and SCSI CD-ROM drives, but it may not support your particular CD-ROM drive. A Windows 98 Startup disk is required to perform the steps in the following sections of this article. If you do not have one, you can create one using any Windows 98-based computer to which you have access. To create a Windows 98 Startup disk, follow these steps:
To start your computer with CD-ROM support and then extract files, use the following steps:
|
Additional query words: 95 98
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |