大网数据广告活动
Windows排障命令

extract

· 52CE 我爱测

Reference article for the extract command, which extracts files from a source location.

Extracts files from a cabinet or source.

Note: On Windows Server 2016 and newer, and on Windows 10, the program file Extract.exe is neither provided nor supported. It is replaced by Extrac32.exe, originally part of Internet Explorer, now part of the operating system.

Syntax

Extract.exe

extract [/y] [/a] [/d | /e] [/l dir] cabinet [filename ...]
extract [/y] source [newname]
extract [/y] /c source destination

Parameters

Parameter Description
cabinet Use if you want to extract two or more files.
filename Name of the file to extract from the cabinet. Wild cards and multiple filenames (separated by blanks) may be used.
source Compressed file (a cabinet with only one file).
newname New filename to give the extracted file. If not supplied, the original name is used.
/a Process ALL cabinets. Follows cabinet chain starting in first cabinet mentioned.
/c Copy source file to destination (to copy from DMF disks).
/d Display cabinet directory (use with filename to avoid extract).
/e Extract (use instead of . to extract all files).
/l dir Location to place extracted files (default is current directory).
/y Don't prompt before overwriting an existing file.

Extrac32.exe

Note: Extrac32.exe can be used from the command line, but does not display any output on the console. Redirect the help output through the more command, like this: extrac32.exe /? | more

Extrac32 [/Y] [/A] [/D | /E] [/L dir] cabinet [filename ...]
Extrac32 [/Y] source [newname]
Extrac32 [/Y] /C source destination

Parameters

Parameter Description
cabinet Cabinet file (contains two or more files).
filename Name of the file to extract from the cabinet. Wild cards and multiple filenames (separated by blanks) may be used.
source Compressed file (a cabinet with only one file).
newname New filename to give the extracted file. If not supplied, the original name is used.
/A Process ALL cabinets. Follows cabinet chain starting in first cabinet mentioned.
/C Copy source file to destination (to copy from DMF disks).
/D Display cabinet directory (use with filename to avoid extract).
/E Extract (use instead of . to extract all files).
/L dir Location to place extracted files (default is current directory).
/Y Do not prompt before overwriting an existing file.

Related links

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 12/29/2020
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。