Use extract.exe to restore a system file

Example to restore kernel32.dll to C:\Windows\System from the cabs files in D:\Install

extract D:\Install\ kernetl32.dll /L C:\Windows\System

Instead of “guessing” which cab-file contains the file one can use a for loop:

for %x in (D:\Install\*.cab) do extract %x kernel32.dll /L C:\Windows\System

Note instead of the for loop one can also try to use the extract /a switch and use the first cab-file in the series, though it will only work on cab-files which are chained together. To see all command line switches execute extract with no parameters.

Note one can also use extract.exe to restore from cab files for Internet Explorer.

Related Win98: Use SFC.EXE to restore a system file
Related WinMe: Use Msconfig.exe to restore a system file

More Info MS KB129605