mirror of
https://github.com/casjaysdevdocker/tools
synced 2025-01-18 18:34:29 -05:00
5eb3ff1598
applications/ configs/ lists/ wwwroot/
18 lines
565 B
Plaintext
18 lines
565 B
Plaintext
'!c:/windows/system32/cscript -nologo
|
|
Option Explicit
|
|
|
|
Dim objShell, objArray, str, envvar, envval
|
|
Set objShell = CreateObject("WScript.Shell")
|
|
Set objArray = CreateObject("System.Collections.ArrayList")
|
|
|
|
WScript.StdOut.WriteLine "Content-type: text/plain; charset=iso-8859-1" & vbLF
|
|
For Each str In objShell.Environment("PROCESS")
|
|
objArray.Add str
|
|
Next
|
|
objArray.Sort()
|
|
For Each str In objArray
|
|
envvar = Left(str, InStr(str, "="))
|
|
envval = Replace(Mid(str, InStr(str, "=") + 1), vbLF, "\n")
|
|
WScript.StdOut.WriteLine envvar & Chr(34) & envval & Chr(34)
|
|
Next
|