リファレンス、WshEnvironment オブジェクト
まんま
Set WshShell = WScript.CreateObject("WScript.Shell") Set WshSysEnv = WshShell.Environment("SYSTEM") WScript.Echo WshSysEnv("NUMBER_OF_PROCESSORS")
Set WshShell = WScript.CreateObject("WScript.Shell") Set WshSysEnv = WshShell.Environment("SYSTEM") WScript.Echo WshSysEnv.Length WScript.Echo WshSysEnv("OS") Set WshSysEnv = WshShell.Environment("USER") WScript.Echo WshSysEnv.Length WScript.Echo WshSysEnv("HOME")