- 帖子
- 13
- 积分
- 21
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2016-6-15
|
[注册表类] reg2bat不能成功转换此项注册表,请教手动怎么写,谢谢。(已解决)
本帖最后由 houxiren 于 2022-6-8 00:59 编辑
注册表如下:
[HKEY_CLASSES_ROOT\Directory\background\shell\NEWTEXT]
@="新建文本文档"
"icon"="\"D:\\ZSXUN\\Software\\Software\\EmEditor\\EmEditor.exe\""
这两句可以成功转换,跳过。下面这句用了好几个 reg2bat 软件转出来的都不能成功写入注册表(备注:不是权限问题)
[HKEY_CLASSES_ROOT\Directory\background\shell\NEWTEXT\command]
@="cmd.exe /c \"for /l %%x in (1, 1, 100) do ( if not exist \"%V\"\\EmptyFile%%x.txt ( type NUL > \"%V\"\\EmptyFile%%x.txt&&exit))\""
打开注册表看的话,内容如下:
cmd.exe /c "for /l %%x in (1, 1, 100) do ( if not exist "%V"\EmptyFile%%x.txt ( type NUL > "%V"\EmptyFile%%x.txt&&exit))"
用 Reg Converter 转换出来的如下,但不能成功写入。
Reg add "HKCR\Directory\Background\shell\NEWTEXT\command" /ve /t REG_SZ /d "cmd.exe /c \"for /l %%%%x in (1, 1, 100) do ( if not exist \"%%%%V\"\EmptyFile%%%%x.txt ( type NUL > \"%%V\"\EmptyFile%%%%x.txt&&exit))\"" /f
谢谢大家! |
|