View Single Post
Old 08-26-2008   #4 (permalink)
Pegasus \(MVP\)


 
 

Re: How to get the Local Machine Name


"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%")


My System SpecsSystem Spec