Acessing Machine name trough Windows Shell and VBScript

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Guest
Archived from groups: microsoft.public.windowsnt.terminalserver.client (More info?)

Morning!
I'd need to access the machine-name through Windows
Shell and VBScript, that is supported by the software I
use. Is that possible??
I thank for any help.

PH
 
Archived from groups: microsoft.public.windowsnt.terminalserver.client (More info?)

..vbs would be:
Dim ob
set ob = Wscript.CreateObject("Wscript.Network")
GetComputerName = ob.ComputerName
Set ob = nothing

In a command shell, just type:
hostname

thanks
Soo Kuan


--
This posting is provided "AS IS" with no warranties, and confers no rights


"Paulo Henrique Soares Maciel" <anonymous@discussions.microsoft.com> wrote
in message news:18fe701c41be7$ed1024b0$a401280a@phx.gbl...
> Morning!
> I'd need to access the machine-name through Windows
> Shell and VBScript, that is supported by the software I
> use. Is that possible??
> I thank for any help.
>
> PH