Home > Article > System Tutorial > What are the registry commands?
The registry is a core database in the Windows operating system, which saves the configuration information of the system and applications. Its commands are 1, reg, which are used to perform various operations, such as query, export, import, and add , delete, update, rename and copy registry key and value data; 2. regedit, used to open the registry editor, browse and modify registry data graphically, you can use this tool to export, import and back up the registry Data
#The registry is a core database in the Windows operating system, which stores the configuration information of the system and applications. The following commands can be used in the command line to manage the registry:
reg: used to perform various operations such as query, export, import, add, delete, update, rename and Copies registry key and value data.
reg query 键名 /v 值名
For example: reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows /v ProgramFilesDir will display the path to the Windows installation directory.
reg export 键名 文件名.reg
For example: reg export HKEY_CURRENT_USER\Software\Microsoft\DesktopWindowManager DWM.reg will export the current user's desktop window manager settings to the DWM.reg file.
reg import 文件名.reg
For example: reg import DWM.reg will import the registry settings in the DWM.reg file.
reg add 键名 /v 值名 /t 类型 /d 数据 [/f]
For example: reg add HKCU\Software\MyApp /v Version /t REG_SZ /d "1.0" /f will add A string value to the current user's MyApp key.
reg delete 键名 [/v 值名] [/f]
For example: reg delete HKEY_CURRENT_USER\Software\MyApp /f will delete the current user's MyApp key and its subkeys and values.
regedit: Used to open the Registry Editor to browse and modify registry data graphically. You can use this tool to export, import, and back up registry data.
regedit
The above are common registry commands and operations that allow you to manage the Windows registry from the command line or Registry Editor.
The above is the detailed content of What are the registry commands?. For more information, please follow other related articles on the PHP Chinese website!