『第 17 楼』:
使用 LLM 解释/回答一下
───────────────── 版务记录 ─────────────────
执行:Will Sort
操作:合并主题:《20054 - 用批处理命令操作注册表的误区》
说明:二主题存在上下文的直接联系
处罚:鉴于主题具有原创意义和较高价值,不予积分处罚
───────────────── 版务记录 ─────────────────
Re ken0212:
猜测你用批处理生成.REG文件无法完全正常导入可能有以下两个原因:
1、注册表项或键值串中有某些会影响echo输出的特殊字符;
2、regedit/s的导入方式可能对某些类型的键值不太支持,XP环境可以考虑改用regedit ok.reg的方式试试。
所以,仍然需要你贴出有哪些无法导入的键值,才有利于问题的判断与解决。当然,如果楼主使用reg add解决问题便不必穷根究底,可以考虑结帖了。
Re xuantian:
以上回复于看到你的主题帖之前,显然易见,由于本人孤陋寡闻,不免误入歧途。为了避免更多人重蹈覆辙,同时也为了讨论上的连贯性,自作主张将主题合并了,如果兄开新主题别有深意,不妨明言,如果确有必要,我会再行拆分。
Last edited by willsort on 2006-4-15 at 01:05 ]
───────────────── Moderation Record ─────────────────
Performed by: Will Sort
Operation: Merge threads: "20054 - Misunderstandings in Using Batch Commands to Manipulate the Registry"
Explanation: The two threads have direct contextual connections
Punishment: Since the threads have original significance and high value, no point penalty is imposed
───────────────── Moderation Record ─────────────────
Re ken0212:
It is guessed that there may be the following two reasons why the .REG file generated by batch processing cannot be completely and normally imported:
1. There are some special characters in the registry key or string value that will affect the echo output;
2. The import method of regedit/s may not be fully compatible with certain types of key values. In the XP environment, you can consider trying the method of regedit ok.reg.
Therefore, it is still necessary for you to post which key values cannot be imported, which is conducive to the judgment and solution of the problem. Of course, if the original poster solves the problem using reg add, there is no need to get to the bottom of it, and you can consider closing the thread.
Re xuantian:
The above reply was made before seeing your topic post. Obviously, due to my lack of knowledge, I inevitably went astray. In order to avoid more people repeating the same mistakes and also for the continuity of discussion, I took the liberty to merge the topics. If you have a special meaning in starting a new topic, you might as well make it clear. If it is really necessary, I will split it again.
Last edited by willsort on 2006-4-15 at 01:05 ]
|