Windows registry utilities
버전 1.1.0 (17.2 KB) 작성자:
Yair Altman
getRegistryValue - get a value from Windows registry (winqueryreg wrapper) setRegistryValue - set a value in the registry (new or updated)
Contains two utility functions to access the Windows registry:
1) getRegistryValue - Get a registry value. Sample usage:
value = getRegistryValue('HKEY_LOCAL_MACHINE', 'Software\Classes\.zip', 'Content Type')
value = getRegistryValue('HKEY_LOCAL_MACHINE\Software\Classes\.zip', 'Content Type')
value = getRegistryValue('HKEY_LOCAL_MACHINE\Software\Classes\.zip', '')
If the 2nd output argument (errorMsg) is requested, then registry query errors do not raise an error, but rather return an empty value and the error message. For example:
[value, errorMsg] = getRegistryValue('HKEY_CURRENT_USER', 'No-such-key', '')
If no specific value key is specified, the entire key-group is returned in a struct format. For example:
>> values = getRegistryValue('HKEY_CURRENT_USER\Software\MyProgram')
values =
struct with fields:
FileTime: 738833.4883
Filename: 'C:\MyProgram\abcd.dat'
2) setRegistryValue - Set a registry value. Sample usage:
[status, msg] = setRegistryValue('HKEY_CURRENT_USER', 'Software\MyProgram', 'DataFolder', 'C:\Data')
[status, msg] = setRegistryValue('HKEY_CURRENT_USER\Software\MyProgram', 'DataFolder', 'C:\Data')
인용 양식
Yair Altman (2024). Windows registry utilities (https://www.mathworks.com/matlabcentral/fileexchange/73045-windows-registry-utilities), MATLAB Central File Exchange. 검색 날짜: .
MATLAB 릴리스 호환 정보
개발 환경:
R2019b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux카테고리
- MATLAB > Graphics > Graphics Objects >
Help Center 및 MATLAB Answers에서 Graphics Objects에 대해 자세히 알아보기
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!버전 | 게시됨 | 릴리스 정보 | |
---|---|---|---|
1.1.0 | Added support for non-integer key values, and fetching group keys as a struct |
|
|
1.0.0 |
|