I am trying to read a string from the registry, I am using
Dim Wsh, Wallpaper
Set Wsh = WScript.CreateObject("WScript.Shell"
set wallpaper = wsh.RegRead("HKCU\CONTROL PANEL\DESKTOP\SCRNSAVE.EXE"
msgbox wallpaper
However when I run it I get a VBSCRIPT RUNTIME Error OBJECT Required: '[String:"(NONE)"]
NONE is the correct responce but why does it error and not displaye in the MSGBOX
Thanks
Steve
Dim Wsh, Wallpaper
Set Wsh = WScript.CreateObject("WScript.Shell"
set wallpaper = wsh.RegRead("HKCU\CONTROL PANEL\DESKTOP\SCRNSAVE.EXE"
msgbox wallpaper
However when I run it I get a VBSCRIPT RUNTIME Error OBJECT Required: '[String:"(NONE)"]
NONE is the correct responce but why does it error and not displaye in the MSGBOX
Thanks
Steve