比如,我要使用这个命令:
reg add hkcr\batfile\shell\test\command /ve /d "test.exe" "%1"
会返回错误: 命令行参数太多,因为它把中间的空格作为参数分隔了。
而
reg add hkcr\batfile\shell\test\command /ve /d ""test.exe" "%1""
和
reg add hkcr\batfile\shell\test\command /ve /d "" "test.exe" "%1"
也都无法执行。
所以,现在的问题是:如果我要用reg add命令加入一个有引号和空格的注册表项,该怎么做?(已搜索论坛,无果)
我不希望用regedit等命令,因为这就要增加临时文件。
希望能得到帮助,先谢谢了。