View Single Post
Old 08-27-2008   #7 (permalink)
Al Dunbar


 
 

Re: How to get the Local Machine Name


"adialji" <guest@xxxxxx-email.com> wrote in message
news:2cdaeed89141aec0f18b490a4b06a639@xxxxxx-gateway.com...
Quote:

>
> I am actually using this vb script as
>
> <script language = "vbscript">
>
> set oWshShell = CreateObject("WScript.Shell")
> wscript.echo oWshShell.ExpandEnvironmentStrings("%ComputerName%")
>
> </script>
>
> The moment this script gets executed at the client browser, an object
> should be created to Wscript.Shell but i am getting the same error
>
> " ActiveX Component Cant create object: 'Wscript.Shell' "
>
> There Must be a way !!
It seems that your script is embedded in an html page, in which case wscript
is not available, as that belongs to the WSH (cscript/wscript) scripting
engines.

/Al


My System SpecsSystem Spec