Property:  WshNetwork.ComputerName

WshNetwork.ComputerName

The ComputerName property returns a string that is the current computer's name. This property is read only.

The following JScript code illustrates the use of this property under WSH 2.0 on a Windows 2000 system.

Code:
WScript.Echo("ComputerName =", WshNetwork.ComputerName)

Output:
ComputerName = DevGuru Server

Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information