标题: 请教“注册表快速定位”的详细用法
[打印本页]
作者: eech
时间: 2007-3-30 07:16
标题: 请教“注册表快速定位”的详细用法
@Echo OFF
::
:: BatName: OpenReg.bat
:: Version: 0.1
:: Purpose: 注册表快速定位
::
:: Usage: OpenReg [path]
:: example: OpenReg HKLM\Software\Microsoft\Windows
::
:: Code by SpikeKnox 2007.01.31
::
rem Show help
If [%1]==[/?] (Type "%~f0" | findstr "^::" && Goto :EOF)
:OpenReg
SetLocal EnableDelayedExpansion
rem %1 要定位的路径(可选,为空时将regedit定位到根目录)
If NOT [%1]==[] (
Set tag=我的电脑\%1
Set "tag=!tag:"=!"
rem 缩写路径转换
Set "tag=!tag:HKCR\=HKEY_CLASSES_ROOT\!"
Set "tag=!tag:HKCU\=HKEY_CURRENT_USER\!"
Set "tag=!tag:HKLM\=HKEY_LOCAL_MACHINE\!"
Set "tag=!tag:HKU\=HKEY_USERS\!"
Set "tag=!tag:HKCC\=HKEY_CURRENT_CONFIG\!"
Set tag="!tag!"
) Else (
Set "tag=我的电脑"
)
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit /v LastKey /d %tag% /f >NUL
Start regedit
SetLocal DisableDelayedExpansion
Goto :EOF
原脚本
如果要打开这个路径应如何写?
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\E0200804
作者: lxmxn
时间: 2007-3-30 23:34
试试这个看行不?
OpenReg "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\E0200804"
作者: eech
时间: 2007-4-2 12:00
谢谢lxmxn,不行啊!
http://photo1.bababian.com/20070 ... 3A426DBE2E0ABBD.jpg
作者: 20080610
时间: 2007-4-2 12:34
说明已经这么清楚了!!看不懂?
:: BatName: OpenReg.bat
:: Version: 0.1
:: Purpose: 注册表快速定位
::
:: Usage: OpenReg [path]
:: example: OpenReg HKLM\Software\Microsoft\Windows
作者: eech
时间: 2007-4-2 13:09
http://photo1.bababian.com/20070 ... BE06F174ED78712.jpg
4楼朋友.无反应啊
作者: 20080610
时间: 2007-4-2 13:19
晕...
:: 批处理文件名: OpenReg.bat
:: 版本: 0.1
:: 目的: 注册表快速定位
::
:: 用法: OpenReg [path]
:: 例子: OpenReg HKLM\Software\Microsoft\Windows
也就是把那个批处理保存为OpenReg.bat
中文的应该能懂吧.