![]() |
中国DOS联盟-- 联合DOS 推动DOS 发展DOS --联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum |
| 游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟 |
|
中国DOS联盟论坛 现在时间是 2026-08-07 18:09 |
共 48,041 主题排行 / 350,128 发帖 / 今日 3 篇 / 48,252 会员排行 |
| DOS批处理 & 脚本技术(批处理室) » 怎么删除注册表默认键值? |
| 可打印版本 1,158 / 10 |
| 第1楼 5872169 | 发表于 2008-03-01 14:54 |
| 高级用户 发帖 474 积分 959 | |
|
怎么删除注册表默认键值? 怎么删除注册表默认键值?请高手写一个代码!
|
|
| 第2楼 HAT | 发表于 2008-03-01 15:37 |
| 版主 发帖 5,017 积分 9,023 | |
|
重复发帖?
|
|
| 第3楼 5872169 | 发表于 2008-03-01 15:42 |
| 高级用户 发帖 474 积分 959 | |
|
可能是点错了,重复了!请原谅
|
|
| 第4楼 balinger | 发表于 2008-03-01 15:45 |
| 中级用户 发帖 115 积分 356 | |
|
REG DELETE "HKEY_CURRENT_USER\123" /ve /f
|
|
| 第5楼 5872169 | 发表于 2008-03-01 15:49 |
| 高级用户 发帖 474 积分 959 | |
|
4楼这条命令不行!出现:
ERROR:拒绝访问 [ Last edited by 5872169 on 2008-3-1 at 03:53 PM ] |
|
| 第6楼 balinger | 发表于 2008-03-01 15:53 |
| 中级用户 发帖 115 积分 356 | |
|
举例而已。
你在HKEY_CURRENT_USER下新建123项,设置默认值,再运行看看。 |
|
| 第7楼 5872169 | 发表于 2008-03-01 15:54 |
| 高级用户 发帖 474 积分 959 | |
|
我这样写的代码:但是出现ERROR:拒绝访问
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{1171A62F-05D2-11D1-83FC-00A0C9089C5A}\InprocServer32" /ve /F |
|
| 第8楼 balinger | 发表于 2008-03-01 16:03 |
| 中级用户 发帖 115 积分 356 | |
|
你缺少权限,查看一下该键的权限。
|
|
| 第9楼 5872169 | 发表于 2008-03-01 16:14 |
| 高级用户 发帖 474 积分 959 | |
|
有命令能强制删除,不管它是否有权限的命令吗?
[ Last edited by 5872169 on 2008-3-1 at 04:43 PM ] |
|
| 第10楼 5872169 | 发表于 2008-03-11 10:54 |
| 高级用户 发帖 474 积分 959 | |
|
怎么修改默认键值的权限呢
|
|
| 第11楼 HAT | 发表于 2008-03-11 14:23 |
| 版主 发帖 5,017 积分 9,023 | |
Originally posted by 5872169 at 2008-3-11 10:54 AM: 使用方法: regini regset.ini regset.ini内容 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run 把run项设为只允许system控制 其他用户不可控制 为控制参数 其他参数看下面的帮助 usage: REGINI textFiles... where: -m specifies a remote windows NT machine whose registry is to be manipula ted. -h specifies a specify local hive to manipulate. -w specifies the paths to a windows 95 system.dat and user.dat files -i n specifies the display indentation multiple. Default is 4 -o outputWidth specifies how wide the output is to be. By default the outputWidth is set to the width of the console window if standard output has not been redirected to a file. In the latter case, an outputWidth of 240 is used. -b specifies that REGINI should be backward compatible with older versions of REGINI that did not strictly enforce line continuations and quoted strings Specifically, REG_BINARY, REG_RESOURCE_LIST and REG_RESOURCE_REQUIREMENTS_LIST data types did not need line continuations after the first number that gave the size of the data. It just kept looking on following lines until it found enough data values to equal the data length or hit invalid input. Quoted strings were only allowed in REG_MULTI_SZ. They could not be specified around key or value names, or around values for REG_SZ or REG_EXPAND_SZ Finally, the old REGINI did not support the semicolon as an end of line comment character. textFiles is one or more ANSI or Unicode text files with registry data. The easiest way to understand the format of the input textFile is to use the REGDMP command with no arguments to dump the current contents of your NT Registry to standard out. Redirect standard out to a file and this file is acceptable as input to REGINI Some general rules are: Semicolon character is an end-of-line comment character, provided it is the first non-blank character on a line Backslash character is a line continuation character. All characters from the backslash up to but not including the first non-blank character of the next line are ignored. If there is more than one space before the line continuation character, it is replaced by a single space. Indentation is used to indicate the tree structure of registry keys The REGDMP program uses indentation in multiples of 4. You may use hard tab characters for indentation, but embedded hard tab characters are converted to a single space regardless of their position Values should come before child keys, as they are associated with the previous key at or above the value's indentation level. For key names, leading and trailing space characters are ignored and not included in the key name, unless the key name is surrounded by quotes. Imbedded spaces are part of a key name. Key names can be followed by an Access Control List (ACL) which is a series of decimal numbers, separated by spaces, bracketed by a square brackets (e.g. ). The valid numbers and their meanings are: 1 - Administrators Full Access 2 - Administrators Read Access 3 - Administrators Read and Write Access 4 - Administrators Read, Write and Delete Access 5 - Creator Full Access 6 - Creator Read and Write Access 7 - World Full Access 8 - World Read Access 9 - World Read and Write Access 10 - World Read, Write and Delete Access 11 - Power Users Full Access 12 - Power Users Read and Write Access 13 - Power Users Read, Write and Delete Access 14 - System Operators Full Access 15 - System Operators Read and Write Access 16 - System Operators Read, Write and Delete Access 17 - System Full Access 18 - System Read and Write Access 19 - System Read Access 20 - Administrators Read, Write and Execute Access 21 - Interactive User Full Access 22 - Interactive User Read and Write Access 23 - Interactive User Read, Write and Delete Access |
|
|
[ 联系联盟系统管理团队 -
中国DOS联盟 -
标准版 ] Sponsored by ifanr Inc | © 2001–2023 |