!BAT by sratlf,hotdll@20120608
checkrange 20111103:-1 read 0x8278 > nul || clear && echo -e \n Not supported grub4dos version!\n && exit
map --mem=0x20000 %~f0 (rd) > nul
cat --locate=\x1f\x8b --number=1 (rd)+1 > nul || exit 1
calc *0x82d8=*0x82d8-%?% > nul
calc *0x82d0=*0x82d0+%?% > nul
map --mem (rd)+1 (hd) > nul
map --rehook
insmod (hd-1,0)/F6.MOD > nul || exit
echo -e ;@hotdll \n > (hd-1,0)/DRV.INI
chkpci -srs | set a=
call :get_WHID SRS %a%
chkpci -net | set b=
call :get_WHID NET %b%
echo -e ;@sratlf >> (hd-1,0)/DRV.INI
:get_WHID
if "%~2"=="" && exit
set WID=%~2
if /i "%WID:~0,7%"=="PCI\VEN" && set HID=%WID:~0,21% ! shift 2 && goto :get_WHID
echo -e %1 = %HID:~8,4% = %HID% >> (hd-1,0)/DRV.INI \r \n
shift 2 && goto :get_WHID
原帖由 hotdll 于 2012-6-8 18:54 发表
网卡ID 是 PCI\VEN_10DE&DEV_0760!BAT by sratlf,hotdll@20120608
checkrange 20111103:-1 read 0x8278 > nul || clear && echo -e \n Not supported grub4dos version!\n && exit
map --mem=0x20000 %~f ...
5.63 KB, 下载次数: 32, 下载积分: 无忧币 -2
原帖由 527104427 于 2012-6-9 10:35 发表 楼主已经解决了chkpci -srs | call :get_WHID SRS=不加等号,所有参数都会被认为是%1
欢迎光临 无忧启动论坛 (http://bbs.c3.wuyou.net/) | Powered by Discuz! X3.3 |