|
|
发表于 2005-10-13 01:06:18
|
显示全部楼层
DOS下更改电源模式的方法?
jujughost 中的 HAL.BAT内容如下:
@echo off
goto init
:HAL "Windows 电源模式更改工具 For DOS by Yanghaijun" [x]
[ &1. Standard PC ]
哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪
[ &2. Advanced Configuration and Power Interface (ACPI) PC ]
哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪
[ &3. ACPI Uniprocessor PC ]
哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪
[ &4. ACPI Multiprocessor PC ]
哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪
[ &5. MPS Uniprocessor PC ]
哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪
[ &6. MPS Multiprocessor PC ]
哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪
[ &7. Silicon Graphics Visual Workstation ]
哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪
[ &8. Compaq SystemPro Multiprocessor or 100% Compatible ]
哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪
[? &9. Exit ]
哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪哪
:
:InputDrive
请输入系统所在分区的盘符: [$ Drv 1,U!]
:
:init
wbat cls (black on +brown)
wbat text 24,20 "技术支持:JUJU猫宽带宝藏论坛 http://www.jujumao.com"
Set Drv=
for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist "%%i:\boot.ini" set Drv=%%i
call w.bat box @%0:InputDrive
if not Exist %Drv%:\boot.ini goto exit
rem wbat box 1,1 "%Drv%" ok
Set WinSys=%Drv%:\Winnt
Set File1=
if Exist %WinSys%\Driver~1\I386\sp5.cab Set File1=Sp5.Cab
if not "%File1%"=="" Goto Start
if Exist %WinSys%\Driver~1\I386\sp4.cab Set File1=Sp4.Cab
if not "%File1%"=="" Goto Start
if Exist %WinSys%\Driver~1\I386\sp3.cab Set File1=Sp3.Cab
if not "%File1%"=="" Goto Start
if Exist %WinSys%\Driver~1\I386\sp2.cab Set File1=Sp2.Cab
if not "%File1%"=="" Goto Start
if Exist %WinSys%\Driver~1\I386\sp1.cab Set File1=Sp1.Cab
if not "%File1%"=="" Goto Start
if Exist %WinSys%\Driver~1\I386\Driver.cab Set File1=Driver.Cab
if not "%File1%"=="" Goto Start
Set WinSys=%Drv%:\Windows
if Exist %WinSys%\Driver~1\I386\sp5.cab Set File1=Sp5.Cab
if not "%File1%"=="" Goto Start
if Exist %WinSys%\Driver~1\I386\sp4.cab Set File1=Sp4.Cab
if not "%File1%"=="" Goto Start
if Exist %WinSys%\Driver~1\I386\sp3.cab Set File1=Sp3.Cab
if not "%File1%"=="" Goto Start
if Exist %WinSys%\Driver~1\I386\sp2.cab Set File1=Sp2.Cab
if not "%File1%"=="" Goto Start
if Exist %WinSys%\Driver~1\I386\sp1.cab Set File1=Sp1.Cab
if not "%File1%"=="" Goto Start
if Exist %WinSys%\Driver~1\I386\Driver.cab Set File1=Driver.Cab
:start
rem wbat box 1,1 "%WinSys%\" ok
call w.bat FIX box 2 @%0:hal
rem wbat box 1,1 "%WBAT%" ok
if "%WBAT%"=="1" goto E_ISA_UP
if "%WBAT%"=="2" goto ACPI
if "%WBAT%"=="3" goto ACPI_UP
if "%WBAT%"=="4" goto ACPI_MP
if "%WBAT%"=="5" goto MPS_UP
if "%WBAT%"=="6" goto MPS_MP
if "%WBAT%"=="7" goto Silicon
if "%WBAT%"=="8" goto Compaq
goto exit
:E_ISA_UP
wbat box "你选择了Standard PC,确认吗?" 确定,取消
if errorlevel 2 goto start
wbat save 1
wbat cls (white on blue)
wbat text 12,24 "正在复制 HAL 文件 ..."
copy /y hal.dll %WinSys%\system32\hal.dll >nul
copy /y ntkrnlpa.exe %WinSys%\system32\ntkrnlpa.exe >nul
copy /y ntoskrnl.exe %WinSys%\system32\ntoskrnl.exe >nul
wbat restore 1
goto CommonOK
:ACPI
wbat box "你选择了Advanced Configuration and Power Interface (ACPI) PC,确认吗?" 确定,取消
if errorlevel 2 goto start
wbat save 1
wbat cls (white on blue)
wbat text 12,24 "正在复制 HAL 文件 ..."
copy /y halacpi.dll %WinSys%\system32\hal.dll >nul
copy /y ntkrnlpa.exe %WinSys%\system32\ntkrnlpa.exe >nul
copy /y ntoskrnl.exe %WinSys%\system32\ntoskrnl.exe >nul
wbat restore 1
goto CommonOK
:ACPI_UP
wbat box "你选择了ACPI Uniprocessor PC,确认吗?" 确定,取消
if errorlevel 2 goto start
wbat save 1
wbat cls (white on blue)
wbat text 12,24 "正在复制 HAL 文件 ..."
copy /y halaacpi.dll %WinSys%\system32\hal.dll >nul
copy /y ntkrnlpa.exe %WinSys%\system32\ntkrnlpa.exe >nul
copy /y ntoskrnl.exe %WinSys%\system32\ntoskrnl.exe >nul
wbat restore 1
goto CommonOK
:ACPI_MP
wbat box "你选择了ACPI Multiprocessor PC,确认吗?" 确定,取消
if errorlevel 2 goto start
wbat save 1
wbat cls (white on blue)
wbat text 12,24 "正在复制 HAL 文件 ..."
copy /y halmacpi.dll %WinSys%\system32\hal.dll >nul
copy /y ntkrpamp.exe %WinSys%\system32\ntkrnlpa.exe >nul
copy /y ntkrnlmp.exe %WinSys%\system32\ntoskrnl.exe >nul
wbat restore 1
goto CommonOK
:MPS_UP
wbat box "你选择了MPS Uniprocessor PC,确认吗?" 确定,取消
if errorlevel 2 goto start
wbat save 1
wbat cls (white on blue)
wbat text 12,24 "正在复制 HAL 文件 ..."
copy /y halapic.dll %WinSys%\system32\hal.dll >nul
copy /y ntkrnlpa.exe %WinSys%\system32\ntkrnlpa.exe >nul
copy /y ntoskrnl.exe %WinSys%\system32\ntoskrnl.exe >nul
wbat restore 1
goto CommonOK
:MPS_MP
wbat box "你选择了MPS Multiprocessor PC,确认吗?" 确定,取消
if errorlevel 2 goto start
wbat save 1
wbat cls (white on blue)
wbat text 12,24 "正在复制 HAL 文件 ..."
copy /y halmps.dll %WinSys%\system32\hal.dll >nul
copy /y ntkrpamp.exe %WinSys%\system32\ntkrnlpa.exe >nul
copy /y ntkrnlmp.exe %WinSys%\system32\ntoskrnl.exe >nul
wbat restore 1
goto CommonOK
:Silicon
wbat box "你选择了Silicon Graphics Visual Workstation,确认吗?" 确定,取消
if errorlevel 2 goto start
wbat save 1
wbat cls (white on blue)
wbat text 12,24 "正在复制 HAL 文件 ..."
copy /y halborg.dll %WinSys%\system32\hal.dll >nul
copy /y ntkrpamp.exe %WinSys%\system32\ntkrnlpa.exe >nul
copy /y ntkrnlmp.exe %WinSys%\system32\ntoskrnl.exe >nul
wbat restore 1
goto CommonOK
:Compaq
wbat box "你选择了Compaq SystemPro Multiprocessor or 100% Compatible,确认吗?" 确定,取消
if errorlevel 2 goto start
wbat save 1
wbat cls (white on blue)
wbat text 12,24 "正在复制 HAL 文件 ..."
copy /y halsp.dll %WinSys%\system32\hal.dll >nul
copy /y ntkrpamp.exe %WinSys%\system32\ntkrnlpa.exe >nul
copy /y ntkrnlmp.exe %WinSys%\system32\ntoskrnl.exe >nul
wbat restore 1
:CommonOK
wbat box "退出本工具,确认吗?" 确定,取消
if errorlevel 2 goto start
:exit
wbat cls (white on black)
其中用到了WBAT.COM这个文件。 |
|