From: Yariv Amos on 22 Feb 2010 08:19 I have trouble using the winqueryreg function. I do not have problem using the example : winqueryreg 'HKEY_CLASSES_ROOT' 'mwsamp.mwsampctrl.2\clsid' and even if I add new key to HKEY_CLASSES_ROOT , I can read it perfectly. However, if I am trying to read key from HKEY_LOCAL_MACHINE he cant get the correct key: val = winqueryreg 'HKEY_LOCAL_MACHINE' 'Software\widemed\scripter' 'Stop' the error is ??? Specified key is invalid.
From: Donn Shull on 28 Feb 2010 10:54 "Yariv Amos" <yariv(a)widemed.com> wrote in message <hlu088$qul$1(a)fred.mathworks.com>... > I have trouble using the winqueryreg function. > > I do not have problem using the example : > winqueryreg 'HKEY_CLASSES_ROOT' 'mwsamp.mwsampctrl.2\clsid' > and even if I add new key to HKEY_CLASSES_ROOT , I can read it perfectly. > > However, if I am trying to read key from HKEY_LOCAL_MACHINE he cant get the correct key: > > val = winqueryreg 'HKEY_LOCAL_MACHINE' 'Software\widemed\scripter' 'Stop' > the error is > ??? Specified key is invalid. > > > > to return a value you need to use the functional form of winqueryreg eg: >> val = winqueryreg('HKEY_LOCAL_MACHINE', 'SOFTWARE\Microsoft\Windows\CurrentVersion', 'ProgramFilesDir') val = C:\Program Files Good Luck, Donn
|
Pages: 1 Prev: reconstruction of underwater image by bispectrum Next: Lexicographical ordering |