![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-08 16:43 |
47,811 topics / 349,895 posts / today 0 new / 48,253 members |
| DOS批处理 & 脚本技术(批处理室) » [Original] Quick Registry Navigation |
| Printable Version 4,166 / 18 |
| Floor1 SpikeKnox | Posted 2007-02-01 06:55 |
| 初级用户 Posts 28 Credits 116 | |
|
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 ] |
|
| Floor2 SpikeKnox | Posted 2007-02-01 12:13 |
| 初级用户 Posts 28 Credits 116 | |
|
查询软件注册表各Software项中的位置 winrar "C%%Program Files%WinRAR"
|
|
| Floor3 0401 | Posted 2007-02-01 18:18 |
| 中级用户 Posts 88 Credits 435 | |
|
Well written, give 2 points to LastKey.
|
|
| Floor4 HUNRYBECKY | Posted 2007-02-01 22:55 |
| 银牌会员 Posts 442 Credits 1,179 | |
|
I also support, +2 points. Not bad.
|
|
| Floor5 HUNRYBECKY | Posted 2007-02-01 23:00 |
| 银牌会员 Posts 442 Credits 1,179 | |
|
But there are some problems when using it. The error displayed is: Too many command-line arguments. Hope to correct it.
|
|
| Floor6 SpikeKnox | Posted 2007-02-02 01:25 |
| 初级用户 Posts 28 Credits 116 | |
Originally posted by HUNRYBECKY at 2007-2-1 10:00 AM: I am using Win2003. REG QUERY supports these parameters, and older versions do not have so many. ![]() REG QUERY KeyName | /ve] ] KeyName FullKey Machine - Name of the remote machine, the default value for the current machine is omitted. Only HKLM and HKU are available on the remote machine. FullKey - In the form of ROOTKEY\SubKey name ROOTKEY - SubKey - The full name of the registry entry under the selected ROOTKEY /v Query for a specific registry entry value. If omitted, all values of the entry will be queried. Only when specified together with the /f switch, the parameter of this switch is optional. It specifies Search only in the value name. /ve Query the default value or empty value name (default). /s Recursively query all subkeys and values (like dir /s). /se Specify the separator in the data string for REG_MULTI_SZ (length is only 1 character). The default separator is "\0". /f Specify the data or pattern to search. If the string contains spaces, use double quotes. The default is "*". /k Specify to search only in the item name. /d Specify to search only in the data. /c Specify to be case-sensitive when searching. The default search is case-insensitive. /e Specify to return only exact matches. By default, all matches are returned. /t Specify the registry value data type. Valid values are: REG_SZ, REG_MULTI_SZ, REG_EXPAND_SZ, REG_DWORD, REG_BINARY, REG_NONE The default is all types. /z Detailed: Display the numeric equivalent of the value name type. |
|
| Floor7 HUNRYBECKY | Posted 2007-03-18 02:45 |
| 银牌会员 Posts 442 Credits 1,179 | |
Originally posted by SpikeKnox at 2007-2-2 01:25: It's really different. Mine is XPSP2, and many parameters are missing. |
|
| Floor8 slore | Posted 2007-03-18 03:29 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
|
LASTKEY has been used for a long time, and there are advantages... but it can only be the first time to open regedit.
Written a long time ago: ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 'Function: Quickly reach the specified path in the registry. ' 'Author: Xuan Xuan G.G. ' ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Dim OperationRegistry Set OperationRegistry=WScript.Createobject("WScript.Shell") RegPath="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit\Favorites" Favorites_GoName="&S I Want to Go to→" Type_Name="REG_SZ" Key_Data=Inputbox("This script is made by" & vbcrlf & "ID:SLore" & vbcrlf & "Nickname: Xuan Production" & vbcrlf & "Please note when forwarding or reposting This information!" & vbcrlf & vbcrlf & "Please enter the path you want to go to:","Path",RegPath) If Key_Data=False Then WScript.Quit OperationRegistry.RegWrite RegPath & "\" & Favorites_GoName,"My Computer\" & Key_Data,Type_Name OperationRegistry.Run("Regedit") WScript.Sleep 1000 'Delay 1s (if the computer is slow, please set this value larger) OperationRegistry.SendKeys "%a+s" WScript.Quit |
|
| Floor9 81291895 | Posted 2007-03-18 03:34 |
| 初级用户 Posts 17 Credits 42 | |
| Floor10 electronixtar | Posted 2007-03-18 03:35 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
| Floor11 HUNRYBECKY | Posted 2007-03-18 04:23 |
| 银牌会员 Posts 442 Credits 1,179 | |
|
I found that the REG command in WIN2003 is very useful. It has fixed the problem that the REG QUERY command mentioned earlier would inexplicably "eat" the tail of Chinese characters.
After my test on 2003, I found that this problem has been completely solved, and it can be ported to WINXP for use. Now there is no problem with querying. Post the comparison results of the two versions: Source value TMP = "D:\USERDATA\TEMP t\我爱大苏打佛似的发十分\什么东西我都不爱得到 打开发地方\哈了" WINXPSP2 query result: WIN2003 query result: Do you notice that the query result of 2003 is missing two lines of data, and the "REG.EXE VERSION 3.0" no longer appears. I see that the version of REG is already 5. Original post discussion: http://www.cn-dos.net/forum/viewthread.php?tid=22202&pid=182591&page=1&sid=Bi8yqD#pid182591 http://www.cn-dos.net/forum/viewthread.php?tid=22800&fpage=1&highlight=REG%2BQUERY http://www.cn-dos.net/forum/viewthread.php?tid=21365&fpage=1&highlight=%E6%B3%A8%E5%86%8C%E8%A1%A8%2B%E4%B8%AD%E6%96%87 [ Last edited by HUNRYBECKY on 2007-3-18 at 04:29 AM ] |
|
| Floor12 electronixtar | Posted 2007-03-24 13:04 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
Essential post, moderator, please add to the essence!!!
|
|
| Floor13 lxmxn | Posted 2007-03-24 19:59 |
| 版主 Posts 4,938 Credits 11,386 | |
|
Not bad, give it a thumbs up. Brother HUNRYBECKY, could you please upload the 2003 reg command to the forum? Many people are using XP. |
|
| Floor14 eech | Posted 2007-03-25 01:43 |
| 高级用户 Posts 346 Credits 906 | |
|
For example, if I want to look up this. How to write it? HKEY_LOCAL_MACHINE\SOFTWARE\KasperskyLab
|
|
| Floor15 xycoordinate | Posted 2007-03-25 01:57 |
| 中级用户 Posts 228 Credits 493 From 安徽 | |
|
Set "tag=!tag:"=!"
Why are there three "???? It seems equivalent to set "tag=!tag!" ?! F:\>QuerySoftRegKey winrar Error: Too many command line arguments [ Last edited by xycoordinate on 2007-3-24 at 01:00 PM ] |
|
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |