也许是好东西——Windows Script Host-1[获取网络识别信息]
发表于:2007-06-30来源:作者:点击数:
标签:
//************************************************ // File:Network.js (WSH sample in JScript) // Author:(c) G. Born // // Showing the user name, domain name, and // workgroup name //************************************************ var Text
//************************************************
// File: Network.js (WSH sample in JScript)
// Author: (c) G. Born
//
// Showing the user name, domain name, and
// workgroup name
//************************************************
var Text = "Networking information\n\n";
// Create WshNetwork object to a
clearcase/" target="_blank" >ccess
.network properties.
var WshNetwork = WScript.CreateObject("WScript.Network");
Text = Text + "Computer name : " + WshNetwork.ComputerName + "\n";
Text = Text + "Domain : " + WshNetwork.UserDomain + "\n";
Text = Text + "User name : " + WshNetwork.UserName + "\n";
WScript.Echo(Text);
//*** End
原文转自:http://www.ltesting.net