- #1
A
--AUSI--
Guest
Hi!
Ich würde gerne einen Eintrag aus der Registry mit VBScript auslesen um dies in einer HTML-Site verwenden zu können.
Ich hab folgendes Beispiel gefunden um einen Eintrag zu schreiben, funktioniert jedoch nicht:
<html>
<body>
<script LANGUAGE=VBScript type=text/vbscript>
<!--
Dim WSHShell, RegLocate, RegLocate1
Set WSHShell = WScript.CreateObject(WScript.Shell)
'On Error Resume Next
RegLocate = HKEY_CURRENT_USER\Control Panel\Desktop\
' Take great care with the line above
' Note the space between \Internet and Settings\
WSHShell.RegWrite WallpaperStyle,0,REG_SZ
WScript.Quit
' Tells the script to stop and exit.
</script>
</body>
</html>
Der IE sagt missing Object: WScript
Kann mir da jemand weiterhelfen?
Ich würde gerne einen Eintrag aus der Registry mit VBScript auslesen um dies in einer HTML-Site verwenden zu können.
Ich hab folgendes Beispiel gefunden um einen Eintrag zu schreiben, funktioniert jedoch nicht:
<html>
<body>
<script LANGUAGE=VBScript type=text/vbscript>
<!--
Dim WSHShell, RegLocate, RegLocate1
Set WSHShell = WScript.CreateObject(WScript.Shell)
'On Error Resume Next
RegLocate = HKEY_CURRENT_USER\Control Panel\Desktop\
' Take great care with the line above
' Note the space between \Internet and Settings\
WSHShell.RegWrite WallpaperStyle,0,REG_SZ
WScript.Quit
' Tells the script to stop and exit.
</script>
</body>
</html>
Der IE sagt missing Object: WScript
Kann mir da jemand weiterhelfen?