REG

REG
Расширение .reg
Разработчик Microsoft
Тип формата файл настроек

REG-файлы — текстовые файлы для последующего внесения данных в реестр Windows.

Самый первый REG-файл SETUP.REG от Windows 3.1 имел структуру, несколько отличную от современных REG-файлов, но уже очень похожую.[источник не указан 2319 дней]

Структура файлов

Файлы должны иметь следующую структуру[1]:

REGEDIT4 или Windows Registry Editor Version 5.00

[Путь к подразделу]
"Ключ1"="Тип:Значение"
"Ключ2"="Тип:Значение"

[Путь к подразделу]
"Ключ3"="Тип:Значение"

Файлы для Windows 9x и NT 4.0 должны начинаться со строки REGEDIT4 и быть сохранёнными в кодировке Windows-1252.

Файлы для Windows 2000 и младших версий должны начинаться со строки Windows Registry Editor Version 5.00 и быть сохранёнными в кодировке Unicode.

Если в значениях параметров используются специальные символы (\, " и другие), то перед каждым из них должна стоять обратная косая черта:

"Driver"="C:\\GML\\Bin\\GML.dll" 
"Строка поиска"="Properties=\"DSN=MyDSN\""

Комментарии в файле должны начинаться со знака ; (точка с запятой):

;комментарий
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] ;тут тоже можно комментировать 
"NoRecentDocsMenu"=hex:01,00,00,00

Примечания

  1. How to add, modify, or delete registry subkeys and values by using a .reg file. support.microsoft.com. Дата обращения: 31 января 2020. Архивировано 1 февраля 2020 года.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.