How to get REG_MULTI_SZ in WINQUERYREG?

3 ビュー (過去 30 日間)
Ivan
Ivan 2014 年 7 月 30 日
The function winqueryreg supports just strings (REG_SZ), expanded strings (REG_EXPAND_SZ) and 32-bit integer (REG_DWORD), but what should I do if I need to get a multistring value (REG_MULTI_SZ)?
All I've invent is:
[~, str] = dos('reg query "hklm\software\myprog" /v MY_KEY')
found = strfind(str, 'REG_MULTI_SZ')
str = str(found+12:end) % I suppose there is just one multistring value
str = str(str~=' ') % clear from spaces
found = strfind(str, '\0')
res{1} = str(1:found-1) % and I suppose there is just one value found again
res{2} = str(found+2:end)
Apparently, this way isn't the best

回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by