Hello guys, thanking you for your replies and comments now get on the today's topic. Today"s topic is how you can extract any extension file using command prompt (Cmd).
Getting to an MS-DOS box in Windows or Booting to MS-DOS
To start an MS-DOS session in Windows,
- Click Start | Run and type COMMAND then click okay.
- At the prompt {C:\>} type the commands listed below
Alternatively, especially for Windows Me,xp,Vista,7 users, Click Start | Shut Down | ReStart in MSDOS Mode.
Extracting Windows Files from an Unknown Cabinet File
Extracting 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\system
The /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:
- extract /a a:\precopy1.cab <filename> /l <destination>
- extract a:\mini.cab <filename> /l <destination>
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:\windows
Note that if you are extracting from a CD-ROM, you must modify the <cabinet> parameter in this command accordingly.
Finding Windows Files
Finding 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.dll
Finding 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 File
Extracting 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\system
Extracting 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\systemListing the Contents of Cabinet Files
You 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.cab
NOTE: 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 Disk
Although 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:\windows
NOTE: 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
- Use the /y switch to cause the Extract tool to not prompt you before overwriting an
existing file. If you use this switch when you are extracting a file, any file in the
destination folder with the same name as the file you are extracting is automatically
overwritten.
For example, to extract the Unidrv.dll file from the Win95_02.cab file on a disk in drive A to the Windows\System folder on drive C and automatically overwrite any existing Unidrv.dll file that is already there, use the following command:extract /y /a a:\win95_02.cab unidrv.dll /l c:\windows\system
- Use the /e switch in place of the "*.*" wildcard designation when you are
extracting or finding multiple files. For example, to extract all the files from the
Win95_06.cab file on a disk in drive A to the Windows folder on drive C, use either of the
following commands:
- extract /e a:\win95_06.cab /l c:\windows
- extract a:\win95_06.cab *.* /l c:\windows
- extract /e a:\win95_06.cab /l c:\windows
System File Checker Tool
Windows 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. NOTE: To use System File Checker to extract a compressed file from the Windows 98, follow these steps:- Click Start, point to Programs, point to Accessories, point to System Tools, and then
click System Information.
- On the Tools menu, click System File Checker.
- Click "Extract one file from installation disk," type the name of the file you
want to extract in the "Specify the system file you would like to restore" box,
and then click Start.
- In the Restore From box, type the path to the Win98 folder on the Windows 98 CD-ROM,
type the destination folder in the Save File In box if necessary, and then click OK.
- Click OK, click OK, and then click Yes when you are prompted to restart your computer.
Using a Windows 98 or Windows Me,XP,Vista,7 Startup Disk to Access a CD-ROM and Extract Files
When you install Windows 98 or Windows Me, you are prompted to create a Windows 98 or Windows Me Startup disk. A feature included in the Windows 98 or Windows Me 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:
- Click Start, point to Settings, click Control Panel, and then double- click Add/Remove
Programs.
- Click the Startup Disk tab, click Create Disk, and then follow the instructions on the
screen.
To start your computer with CD-ROM support and then extract files, use the following steps:
- Insert the Windows 98 or Windows Me Startup disk in drive A, and then restart your
computer.
- When the Microsoft Windows 98 or Windows Me Startup menu appears, choose Start Computer
With CD-ROM Support.
- Insert the Windows 98 or Windows Me CD-ROM in the CD-ROM drive. NOTE: Windows Me
installs the cabinet files, by default, in the following directory:
\Windows\Options\Install. If these files are on your computer, you do not need your
Windows Me CD-ROM at this step, you can extract the files needed from the
\Windows\Options\Install directory.
- To extract files at the command prompt, you can use the information provided earlier in this article, or you can use the Extract Command Line Helper tool. To use Extract Command Line Helper, type "ext" (without quotation marks) at the command prompt, and then follow the instructions on the screen.
Using the Ext.exe Tool to Extract Files
The Ext.exe tool builds a command line for the Extract.exe tool. It is located on the Windows 98 or Me Startup disk.To extract a file from a .cab file, run the Ext.exe program from your Windows 98 or Me Startup disk, and follow the instructions on the screen to extract the file you want.
0 comments:
Post a Comment
What's on your Mind Say it below