China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-07 13:31
中国DOS联盟论坛 » DOS软件下载 & 游戏分享 (下载室) » Using the extract Command [Repost] View 1,828 Replies 1
Original Poster Posted 2003-03-12 00:00 ·  中国 河北 唐山 教育网
中级用户
★★
Credits 373
Posts 69
Joined 2002-10-16 00:00
23-year member
UID 7
Gender Male
Status Offline
Extract.exe is the pure DOS file extraction utility from Windows 9X. The syntax for extract is as follows:

extract /a /l

  ·cabinet is the name of the cab file

  ·filename is the name of the file you want to extract from the cab

  ·destination is the location where the extracted file will be placed

  · is only used as a marker in the explanation, it is not part of the "command". Each parameter must be separated by spaces.

  ·If you have experience using DOS, you can use the /? parameter (extract /?) to look at the extract command help.

An actual example will be easier to understand. Suppose I want to extract Shell.dll to C:\Windows\System (Shell.dll is in precopy1.cab). Suppose my CD-ROM drive letter is F; just change it to your own CD-ROM drive letter. (That means pointing to the path where your cab files are located.)

  extract /a /e /l c:\windows\system f:\win98\precopy1.cab shell.dll

  extract can also accept the wildcard character * .

  For example, if I want to extract all txt files in win95_02.cab to c:\windows, then it is:

  extract /a /e /l c:\windows f:\win95\win95_02.cab *.txt

  If you want to see the contents of a certain cab file:

  extract /d

  If you want to view the contents of cab files continuously:

  extract /a /d

If you want the display to pause after one screen when continuously viewing cab files, you can add the MORE command:

extract /a /d

  cab files have a "chained" property. After finishing one, it will continue looking for the second one linked to it, and keep chaining onward. For example, after finishing Base4.cab it will continue with Base5.... After finishing Win98_21.cab, it will continue searching Win98_22.cab, Win98_23.cab.... and so on, by analogy.

  For example, if I want to display the contents from win98_21.cab to win98_76.cab, then it is

  extract /a /d win98_21.cab

  After extract finishes reading win98_21.cab, it will continue reading the next one, until the last one.

  Searching for files

  extract /a /d

  For example, if I want to find out which cab contains vmm32.vxd, then it is:

  extract /a /d f:\win98\win98_22.cab vmm32.vxd

  (Because win98_22.cab is under the win98 directory, and because win98_22.cab is the first cab file for ordinary windows files. As mentioned before, cab files are chained: as long as you start with the first one, extract will continue with the second, third, and so on, so here I have it start searching from the file win98_21.cab.)

  extract will start searching from win98_22 and keep going until the last cab file. However, if there are too many cab files to search, the screen may scroll too fast, and sometimes it is not easy to see which cab file the file is in.
Floor 2 Posted 2003-03-12 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Using the CABARC command is pretty good too, unfortunately it can only be used in a DOS window.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Forum Jump: