无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 1997|回复: 8
打印 上一主题 下一主题

谁能告诉我史奴比恢复光盘中的ACPI电源管理选择程序的原理?

[复制链接]
跳转到指定楼层
1#
发表于 2004-9-3 10:34:31 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我发现史奴比恢复光盘中的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
2#
 楼主| 发表于 2004-9-3 10:37:25 | 只看该作者

谁能告诉我史奴比恢复光盘中的ACPI电源管理选择程序的原理?

好心人帮帮忙吧
回复

使用道具 举报

3#
发表于 2004-9-3 11:38:22 | 只看该作者

谁能告诉我史奴比恢复光盘中的ACPI电源管理选择程序的原理?

他使用的是微软的电源识别软件ta.exe,这个是高手hlk94在windows embedded发现,由死性不改编辑批处理实现的!
回复

使用道具 举报

4#
 楼主| 发表于 2004-9-3 13:16:59 | 只看该作者

谁能告诉我史奴比恢复光盘中的ACPI电源管理选择程序的原理?

有没有ta.exe怎么使用,并实现的教程或者参考吗??
回复

使用道具 举报

5#
发表于 2004-9-3 15:48:19 | 只看该作者

谁能告诉我史奴比恢复光盘中的ACPI电源管理选择程序的原理?

支持!好。
回复

使用道具 举报

6#
发表于 2004-9-4 02:54:00 | 只看该作者

谁能告诉我史奴比恢复光盘中的ACPI电源管理选择程序的原理?

首先得问你会DOS吗?一般的水平是不行的。
再说,研究这个什么用处?
回复

使用道具 举报

7#
发表于 2004-9-4 10:15:56 | 只看该作者

谁能告诉我史奴比恢复光盘中的ACPI电源管理选择程序的原理?

回复

使用道具 举报

8#
发表于 2004-9-4 17:45:49 | 只看该作者

谁能告诉我史奴比恢复光盘中的ACPI电源管理选择程序的原理?

高!
偶一点也不懂呀!
回复

使用道具 举报

9#
发表于 2004-9-11 22:06:31 | 只看该作者

谁能告诉我史奴比恢复光盘中的ACPI电源管理选择程序的原理?

有没有死性不改兄的那个下呀.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2025-10-16 16:02

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表