
Error, Object Required "Wscript"
For HTML script, WScript isn't the host (the browser is) so the "built-in" WScript object doesn't exist...
--
Michael Harris
I ran the following code to learn WSH and got the indicated error.
What did I leave out?
<html>
<SCRIPT LANGUAGE="VBScript">
Dim WshSHell
set WshShell = CreateObject("WScript.Shell")
'The following example echoes the directory where the executable
' file resides:
WScript.Echo WScript.Path
'Error Object required "Wscript"
</SCRIPT>
</html>