How to get REG_MULTI_SZ in WINQUERYREG?

6 Ansichten (letzte 30 Tage)
Ivan
Ivan am 30 Jul. 2014
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

Antworten (0)

Kategorien

Mehr zu System Commands finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by