Used sysinternals' regjump
Just wrote a batch,
But the shortcoming is that it can't locate to the specific value.
Novice work, please give more pointers!
Thank you!
[ Last edited by SpikeKnox on 2007-1-31 at 05:57 PM ]
Just wrote a batch,
But the shortcoming is that it can't locate to the specific value.
Novice work, please give more pointers!
Thank you!
@Echo OFF
::
:: BatName: OpenReg.bat
:: Version: 0.1
:: Purpose: Quick registry location
::
:: 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 The path to locate (optional, when empty, will locate regedit to the root directory)
If NOT == (
Set tag=My Computer\%1
Set "tag=!tag:"=!"
rem Abbreviation path conversion
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=My Computer"
)
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 ]
Recent Ratings for This Post
( 3 in total)
Click for details
| Rater | Score | Time |
|---|---|---|
| 0401 | +2 | 2007-02-01 18:16 |
| electronixtar | +11 | 2007-03-18 03:36 |
| everest79 | +8 | 2007-03-24 15:27 |

