我借用了老毛桃的MCab批处理.exe,把驱动制成exe文件。然后编写了如下的批处理,
你可以试试:
Integrated.bat
@ECHO OFF
cd %systemdrive%\drivers
extract.exe /e %systemdrive%\drivers\Integrated.cab /l %systemdrive%\drivers\Integrated
drivers.bat
@ECHO OFF
cd %systemdrive%\drivers
drivers.exe /T:%systemdrive%\drivers /C
if drivers\2ksp4.reg %WinDir%\regedit /s %systemdrive%\drivers\2ksp4.reg
del /q *.reg
if chipsets.cab goto chipsets
if display.cab goto display
if display.cab goto Ethernet
if sound.cab goto sound
if Integrated.cab goto Integrated
:chipsets
EXTRACT.EXE /e %systemdrive%\drivers\Chipsets.cab %systemdrive%\drivers\Chipsets start /wait && del chipsets.cab
:display
EXTRACT.EXE /e %systemdrive%\drivers\display.cab %systemdrive%\drivers\display start /wait && del display.cab
:Ethernet
EXTRACT.EXE /e %systemdrive%\drivers\Ethernet.cab %systemdrive%\drivers\Ethernet start /wait && del Ethernet.cab
:sound
EXTRACT.EXE /e %systemdrive%\drivers\sound.cab %systemdrive%\drivers\sound start /wait && del sound.cab
:Integrated
EXTRACT.EXE /e %systemdrive%\drivers\Integrated.cab %systemdrive%\drivers\Integrated start /wait && del Integrated.cab
del /q EXTRACT.EXE
del /q *.bat
exit
也许迟了一些,但愿有用。 |