Я хочу установить этот ключ reg в bat-файле:
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open\command]
@ = Гекс (2):25,00,53,00,79,00,73,00,74,00,65,00,6d, 00,52,00,6f, 00,6f, 00,74,00 , 25,\00,5c, 00,53,00,79,00,73,00,74,00,65,00,6d, 00,33,00,32,00,5c, 00,72,00, 75,00,\6e, 00,64,00,6c, 00,6c, 00,33,00,32,00,2e, 00,65,00,78,00,65,00,20,00,22 , 00,25,\00,50,00,72,00,6f, 00,67,00,72,00,61,00,6d, 00,46,00,69,00,6c, 00,65, 00,73,00,\25,00,5c, 00,57,00,69,00,6e, 00,64,00,6f, 00,77,00,73,00,20,00,50,00 , 68,00,6f,\00,74,00,6f, 00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c, 00, 50,00,68,00,\6f, 00,74,00,6f, 00,56,00,69,00,65,00,77,00,65,00,72,00,2e, 00,64 , 00,6c, 00,6c,\00,22,00,2c, 00,20,00,49,00,6d, 00,61,00,67,00,65,00,56,00,69, 00,65,00,77,00,\5f, 00,46,00,75,00,6c, 00,6c, 00,73,00,63,00,72,00,65,00,65,00 , 6е, 00,20,00,25,\00,31,00,00,00
Я пытался сделать это:
reg add "HKCU\HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open\command" /ve /t REG_EXPAND_SZ /d %SystemRoot%\System32\rundll32.exe @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\
6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\
00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\
25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\
00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\
6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\
00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\
5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\
00,31,00,00,00
но это не сработает. Кто-нибудь знает, как я могу это сделать?