Показать сообщение отдельно

  #9  
Старый 25.11.2008, 15:37
procedure
Banned
Регистрация: 22.12.2007
Сообщений: 660
Провел на форуме:
3885269

Репутация: 1158


По умолчанию

Цитата:
procedure автор спросил как создать файл через каторый идет CMD запрос
Я ему подсказал
Ты не через cmd подсказал, а через .reg
Код:
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\CrashContro l" /d AutoReboot REG_DWORD /f 0

Последний раз редактировалось procedure; 25.11.2008 в 15:43..