Bart Lagerweij使用微软提供的cabarc.exe来制做cab文件,这个程序是命令行方式的程序,应该可以运行在纯DOS环境下。下面是Bart写的用来制做cab文件的批处理,从里面可以找到这个程序的下载地址:
@echo off
if not exist cabarc.exe goto _nocab
if "%1" == "" goto _usage
if exist source\%1\nul goto _dirok
echo MAKE: Directory "source\%1" does not exist...
goto _abort
:_dirok
cabarc -m LZX:21 -p -r -P source\%1\ n cabs\%1.cab source\%1\*.*
if errorlevel 1 goto _abort
echo.
echo MAKE: Module "%1" created. File is "cabs\%1.cab"
goto _end
:_nocab
echo.
echo MAKE: Cannot find needed file "cabarc.exe"
echo MAKE: You can extract it from
echo http://msdn.microsoft.com/library/en-us/dnsamples/cab-sdk.exe
goto _abort
:_usage
echo.
echo MAKE.BAT is used to quickly build a modboot module (.cab file)
echo.
echo Usage: make name
echo.
echo name: the name to build (should exist as directory in source)
echo.
goto _end
:_abort
echo.
echo Aborted...
pause
:_end