『楼 主』:
[求助]关于使用REG命令提示”命令行参数太多“的问题
使用 LLM 解释/回答一下
奇怪了,偶从XP中COPY一个reg.exe到偶的WIN2000系统下system32文件夹内,可以运行,但偶试着写一个试试,却提示 :“ 错误 :命令行参数太多 ”
倒……这也是错误?
说明:功能是修改注册表内已有的项的当前数值,用reg add 命令,不知得当否?
在win2000 的命令行窗口下输入:
reg add HKCU\software\class efg setting\abc offices\my computers usb /v XYZ /d 1,2,3,4,5,6,7,8 /f
因为 是REG_SZ数值,所以就没有加 /t 参数,敲回车后出现上述提示???
路径没有错,项也没有错,请教……
偶试着改了一下数值,也是这个 提示,说明REG不支持注册表主键下3级以下的目录或不支持带有空格的长路径子项名?
用其它的REG DELETE 或REG EXPORT等命令来操作这个项,一样的提示,请问问题出在哪里?谢谢……
Last edited by flying008 on 2006-7-13 at 09:12 ]
Strange, I copied reg.exe from XP to the system32 folder of my WIN2000 system, and it can run. But when I tried to write one, it prompted: "Error: Too many command-line arguments"
Oh... This is also an error?
Explanation: The function is to modify the current value of an existing item in the registry, using the reg add command. I wonder if it's appropriate?
Enter in the command line window of win2000:
reg add HKCU\software\class efg setting\abc offices\my computers usb /v XYZ /d 1,2,3,4,5,6,7,8 /f
Because it's a REG_SZ value, so I didn't add the /t parameter. After pressing Enter, the above prompt appeared???
The path is correct, the item is correct. Please advise...
I tried to change the value, and it's the same prompt. Does it mean that REG doesn't support directories below level 3 under the registry primary key or doesn't support long path sub-item names with spaces?
Using other REG DELETE or REG EXPORT commands to operate this item, the same prompt appears. Please ask where the problem is? Thanks...
Last edited by flying008 on 2006-7-13 at 09:12 ]
|