"adialji" <guest@xxxxxx-email.com> wrote in message
news:53a528110837b568106e892f79d4d814@xxxxxx-gateway.com...
Quote:
>
> But i am getting the error message
> ActiveX component can't create object: 'Wscript.Network'
>
>
> --
> adialji
Here is another method:
set oWshShell = CreateObject("WScript.Shell")
wscript.echo oWshShell.ExpandEnvironmentStrings("%ComputerName%")