I am trying to fill a dimension containing the value of the following registry key in NT4 using the following WScript:
Dim strInstalled, WshShell
Set WshShell = CreateObject("Wscript.Shell"
strInstalled=WSHShell.Regread("HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management\PagingFiles"
msgbox strinstalled
I am getting the following message:
Error: Type Mismatch
Code: 800A000D
I understand that it is an REG_SZ value but have not read anywhere that it should be a problem. In fact, MSDN says that RegRead supports this. I have created string values and can return the correct information.
Can anyone help with this.
![[thumbsup2] [thumbsup2] [thumbsup2]](/data/assets/smilies/thumbsup2.gif)
Thank you for your time.
Dim strInstalled, WshShell
Set WshShell = CreateObject("Wscript.Shell"
strInstalled=WSHShell.Regread("HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management\PagingFiles"
msgbox strinstalled
I am getting the following message:
Error: Type Mismatch
Code: 800A000D
I understand that it is an REG_SZ value but have not read anywhere that it should be a problem. In fact, MSDN says that RegRead supports this. I have created string values and can return the correct information.
Can anyone help with this.
![[thumbsup2] [thumbsup2] [thumbsup2]](/data/assets/smilies/thumbsup2.gif)
Thank you for your time.