Привет всем! мини вопрос как создать файлик cmd чтоб выполнилось действие с реестром мне надо прописать вот такую строку создаю такой файл reg.cmd но зацикливаеться regedit REG ADD HKLM\SYSTEM\CurrentControlSet\Control\CrashControl /d AutoReboot REG_DWORD /f 0
Блокнот ---> Файл(в блокноте вкладка) ----> Созданить как----> Имя zzzzz.bat и расширение не txt(ну там внизу под названием)
procedure автор спросил как создать файл через каторый идет CMD запрос Я ему подсказал Дальше его проблемы что он хочет то и крутит Темболее заметь я сказал "Если все правильно сделал" то есть все прально написал в файле и сохранил
Ты не через cmd подсказал, а через .reg Code: General Syntax: GUI mode: REGEDIT.EXE Import (merge) a .REG file: REGEDIT.EXE [ /L:system | /R:user ] [ /S ] importfile.REG Export to a (.REG) file: REGEDIT.EXE [ /L:system | /R:user ] /E exportfile "registry_key" Compress the registry (Windows 98 only): REGEDIT.EXE [ /L:system | /R:user ] /C Parameters: importfile.REG .REG file to be imported (or "merged") exportfile.REG File name the information should be written to "registry_key" Registry key to be exported, e.g. "HKEY_CLASSES\ROOT\*\shell" /S Silent, i.e. hide confirmation box when importing files /E Export registry file /L:system Specify the location of the system.dat to use /R:user Specify the location of the user.dat to use /C Compress [filename] (Windows 98 only) В твоем случае ТС, команда выглядит так: regedit.exe "registry_key" "HKLM\SYSTEM\CurrentControlSet\Control\CrashControl" /d AutoReboot REG_DWORD /f 0