无忧启动论坛
标题:
谁能告诉我史奴比恢复光盘中的ACPI电源管理选择程序的原理?
[打印本页]
作者:
guoxl
时间:
2004-9-3 10:34
标题:
谁能告诉我史奴比恢复光盘中的ACPI电源管理选择程序的原理?
我发现史奴比恢复光盘中的ACPI电源管理是用 \sysprep\autohal.cmd 来控制的
请问是怎么具体实现的呢? 文件内容如下:
@echo off
if not exist %systemroot%\system32\ta.exe goto quit
if exist %systemroot%\system32\devices.pmq del %systemroot%\system32\devices.pmq
ta >nul
find "ACPIPIC_UP" %systemroot%\system32\devices.pmq && goto ACPI
find "ACPIAPIC_UP" %systemroot%\system32\devices.pmq && goto APICUP
find "ACPIAPIC_MP" %systemroot%\system32\devices.pmq && goto APICMP
find "MPS_UP" %systemroot%\system32\devices.pmq && goto MPSUP
find "MPS_MP" %systemroot%\system32\devices.pmq && goto MPSMP
find "SYSPRO_MP" %systemroot%\system32\devices.pmq && goto SYSPROMP
@echo Standard PC
goto end
:ACPI
echo Advanced Configuration and Power Interface (ACPI) PC
expand %systemroot%\Driver~1\I386\sp4.cab -F:ntoskrnl.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\sp3.cab -F:ntoskrnl.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\sp2.cab -F:ntoskrnl.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\sp1.cab -F:ntoskrnl.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\driver.cab -F:ntoskrnl.exe %systemroot%\
expand %systemroot%\Driver~1\I386\sp4.cab -F:halacpi.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\sp3.cab -F:halacpi.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\sp2.cab -F:halacpi.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\sp1.cab -F:halacpi.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\driver.cab -F:halacpi.dll %systemroot%\
move %systemroot%\ntoskrnl.exe %systemroot%\system32\
move %systemroot%\halacpi.dll %systemroot%\system32\hal.dll
goto end
:APICUP
echo ACPI Uniprocessor PC
expand %systemroot%\Driver~1\I386\sp4.cab -F:halaacpi.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\sp3.cab -F:halaacpi.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\sp2.cab -F:halaacpi.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\sp1.cab -F:halaacpi.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\driver.cab -F:halaacpi.dll %systemroot%\
expand %systemroot%\Driver~1\I386\sp4.cab -F:ntoskrnl.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\sp3.cab -F:ntoskrnl.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\sp2.cab -F:ntoskrnl.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\sp1.cab -F:ntoskrnl.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\driver.cab -F:ntoskrnl.exe %systemroot%\
move %systemroot%\ntoskrnl.exe %systemroot%\system32\
move %systemroot%\halaacpi.dll %systemroot%\system32\hal.dll
goto end
:APICMP
echo ACPI Multiprocessor PC
expand %systemroot%\Driver~1\I386\sp4.cab -F:halmacpi.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\sp3.cab -F:halmacpi.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\sp2.cab -F:halmacpi.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\sp1.cab -F:halmacpi.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\driver.cab -F:halmacpi.dll %systemroot%\
expand %systemroot%\Driver~1\I386\sp4.cab -F:ntkrnlmp.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\sp3.cab -F:ntkrnlmp.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\sp2.cab -F:ntkrnlmp.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\sp1.cab -F:ntkrnlmp.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\driver.cab -F:ntkrnlmp.exe %systemroot%\
move %systemroot%\halmacpi.dll %systemroot%\system32\hal.dll
move %systemroot%\ntkrnlmp.exe %systemroot%\system32\ntoskrnl.exe
goto end
:MPSUP
echo MPS Uniprocessor PC
expand %systemroot%\Driver~1\I386\sp4.cab -F:ntoskrnl.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\sp3.cab -F:ntoskrnl.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\sp2.cab -F:ntoskrnl.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\sp1.cab -F:ntoskrnl.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\driver.cab -F:ntoskrnl.exe %systemroot%\
expand %systemroot%\Driver~1\I386\sp4.cab -F:halapic.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\sp3.cab -F:halapic.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\sp2.cab -F:halapic.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\sp1.cab -F:halapic.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\driver.cab -F:halapic.dll %systemroot%\
move %systemroot%\halapic.dll %systemroot%\system32\hal.dll
move %systemroot%\ntoskrnl.exe %systemroot%\system32\
goto end
:MPSMP
echo MPS Multiprocessor PC
expand %systemroot%\Driver~1\I386\sp4.cab -F:ntkrnlmp.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\sp3.cab -F:ntkrnlmp.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\sp2.cab -F:ntkrnlmp.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\sp1.cab -F:ntkrnlmp.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\driver.cab -F:ntkrnlmp.exe %systemroot%\
expand %systemroot%\Driver~1\I386\sp4.cab -F:halmps.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\sp3.cab -F:halmps.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\sp2.cab -F:halmps.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\sp1.cab -F:halmps.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\driver.cab -F:halmps.dll %systemroot%\
move %systemroot%\halmps.dll %systemroot%\system32\hal.dll
move %systemroot%\ntkrnlmp.exe %systemroot%\system32\ntoskrnl.exe
goto end
:SYSPROMP
echo Compaq SystemPro Multiprocessor or 100% Compatible
expand %systemroot%\Driver~1\I386\sp4.cab -F:ntkrnlmp.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\sp3.cab -F:ntkrnlmp.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\sp2.cab -F:ntkrnlmp.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\sp1.cab -F:ntkrnlmp.exe %systemroot%\ || expand %systemroot%\Driver~1\I386\driver.cab -F:ntkrnlmp.exe %systemroot%\
expand %systemroot%\Driver~1\I386\sp4.cab -F:halsp.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\sp3.cab -F:halsp.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\sp2.cab -F:halsp.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\sp1.cab -F:halsp.dll %systemroot%\ || expand %systemroot%\Driver~1\I386\driver.cab -F:halsp.dll %systemroot%\
move %systemroot%\halsp.dll %systemroot%\system32\hal.dll
move %systemroot%\ntkrnlmp.exe %systemroot%\system32\ntoskrnl.exe
goto end
:end
reg delete HKLM\SYSTEM\ControlSet001\Enum\Root\ACPI_HAL\0000 /f
reg delete HKLM\SYSTEM\ControlSet001\Enum\Root\PCI_HAL\0000 /f
reg import c:\sysprep\sysprep.chk
:quit
@exit
作者:
guoxl
时间:
2004-9-3 10:37
标题:
谁能告诉我史奴比恢复光盘中的ACPI电源管理选择程序的原理?
好心人帮帮忙吧
作者:
金雕
时间:
2004-9-3 11:38
标题:
谁能告诉我史奴比恢复光盘中的ACPI电源管理选择程序的原理?
他使用的是微软的电源识别软件ta.exe,这个是高手hlk94在windows embedded发现,由死性不改编辑批处理实现的!
作者:
guoxl
时间:
2004-9-3 13:16
标题:
谁能告诉我史奴比恢复光盘中的ACPI电源管理选择程序的原理?
有没有ta.exe怎么使用,并实现的教程或者参考吗??
作者:
弄潮儿-NET
时间:
2004-9-3 15:48
标题:
谁能告诉我史奴比恢复光盘中的ACPI电源管理选择程序的原理?
支持!好。
作者:
木鸟
时间:
2004-9-4 02:54
标题:
谁能告诉我史奴比恢复光盘中的ACPI电源管理选择程序的原理?
首先得问你会DOS吗?一般的水平是不行的。
再说,研究这个什么用处?
作者:
tttt
时间:
2004-9-4 10:15
标题:
谁能告诉我史奴比恢复光盘中的ACPI电源管理选择程序的原理?
顶
作者:
jwj
时间:
2004-9-4 17:45
标题:
谁能告诉我史奴比恢复光盘中的ACPI电源管理选择程序的原理?
高!
偶一点也不懂呀!
作者:
cjlchy
时间:
2004-9-11 22:06
标题:
谁能告诉我史奴比恢复光盘中的ACPI电源管理选择程序的原理?
有没有死性不改兄的那个下呀.
欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/)
Powered by Discuz! X3.3