whoami.vbs源代码
时间:2021-03-13 09:49:10|栏目:VBS|点击: 次
得到本机的电脑名
Dim objNet
Set objNet = WScript.CreateObject( "WScript.Network" )
Wscript.Echo objNet.ComputerName & "\" & objNet.UserName
复制代码 代码如下:
Dim objNet
Set objNet = WScript.CreateObject( "WScript.Network" )
Wscript.Echo objNet.ComputerName & "\" & objNet.UserName