VBScript Environment Variables
By Unknown | Labels: Environment, Shell, Variable, vbscript, WScript, wshJerold SchulmanREF
Set oShell = CreateObject( "WScript.Shell" )
user=oShell.ExpandEnvironmentStrings("%UserName%")
comp=oShell.ExpandEnvironmentStrings("%ComputerName%")
WScript.Echo user & " " & comp
0 comments: