page317.vbs

来自「Apress - Managing Enterprise Systems Wit」· VBS 代码 · 共 8 行

VBS
8
字号
Dim objWMI, nTimeZone

'get a reference to instance of Win32_ComputerSystem class for computer Odin
Set objWMI = GetObject("winmgmts:{impersonationLevel=impersonate}" & _
             "!Win32_ComputerSystem='Thor'")

nTimeZone = objWMI.Currenttimezone
Wscript.Echo "THe timezone is " & nTimeZone & " hours of GMT"

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?