批处理修改注册表
来源:百度知道 编辑:UC知道 时间:2024/05/10 07:59:04
REM 如果你的是xp或以上的操作系统:
@reg add Hklm\SYSTEM\CurrentControlSet\Control\Session" "Manager\Memory" "Management\PrefetchParameters /v EnablePrefetcher /t REG_DWORD /d 1 /f
:::::::::::::::::::::::::::::::::::::::::::::::::
::或者:
@echo off
< "%~f0" more +5 > tmp.reg
regedit /s tmp.reg
del tmp.reg
goto :eof
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
"EnablePrefetcher"=dword:00000001
直接在记事本里粘贴下以下内容
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
"EnablePrefetcher"=dword:00000001
再保存为1.reg,需要用时直接双击导入注册表即可.
写好了,保存为bat批处理文件
echo off
ech