When I run:
<Script Language="vbscript" >
Dim WshSHell
Set WshShell = CreateObject("Wscript.Shell"
WshSHell.run "NOTEPAD.EXE",1,false
</Script>
I open notepad just fine BUT when I try:
<Script Language="vbscript">
Dim WshShell
Dim strWallpaper
Set WshShell = CreateObject("WScript.Shell"
strWallpaper = WshShell.RegRead("HKCU\ControlPanel\Desktop\Wallpaper"
Wscript.Echo strWallpaper
</Script>
I get an error that an object is required. Can anyone tell me why or give me a foolproof way to read a registry key?
I am wanting to read <Reg_SZ> value from the HKCR that is assigned to the .mde key. Any help would be more than greatly appreciated.
<Script Language="vbscript" >
Dim WshSHell
Set WshShell = CreateObject("Wscript.Shell"
WshSHell.run "NOTEPAD.EXE",1,false
</Script>
I open notepad just fine BUT when I try:
<Script Language="vbscript">
Dim WshShell
Dim strWallpaper
Set WshShell = CreateObject("WScript.Shell"
strWallpaper = WshShell.RegRead("HKCU\ControlPanel\Desktop\Wallpaper"
Wscript.Echo strWallpaper
</Script>
I get an error that an object is required. Can anyone tell me why or give me a foolproof way to read a registry key?
I am wanting to read <Reg_SZ> value from the HKCR that is assigned to the .mde key. Any help would be more than greatly appreciated.