用过 sysinternals 的 regjump
就用BAT来写了一把,
但缺点是不能定位到具体的值。
新手作品,请大家多多指正!
谢谢!
[ Last edited by SpikeKnox on 2007-1-31 at 05:57 PM ]
就用BAT来写了一把,
但缺点是不能定位到具体的值。
新手作品,请大家多多指正!
谢谢!
@Echo OFF
::
:: BatName: OpenReg.bat
:: Version: 0.1
:: Purpose: 注册表快速定位
::
:: Usage: OpenReg
:: example: OpenReg HKLM\Software\Microsoft\Windows
::
:: Code by SpikeKnox 2007.01.31
::
rem Show help
If == (Type "%~f0" | findstr "^::" && Goto :EOF)
:OpenReg
SetLocal EnableDelayedExpansion
rem %1 要定位的路径(可选,为空时将regedit定位到根目录)
If NOT == (
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
[ Last edited by SpikeKnox on 2007-1-31 at 05:57 PM ]
本帖最近评分记录
(共 3 条)
点击查看详情
| 评分人 | 分数 | 时间 |
|---|---|---|
| 0401 | +2 | 2007-02-01 18:16 |
| electronixtar | +11 | 2007-03-18 03:36 |
| everest79 | +8 | 2007-03-24 15:27 |

