Skip to content

Instantly share code, notes, and snippets.

@raa0121
Last active January 1, 2016 20:19
Show Gist options
  • Save raa0121/8196638 to your computer and use it in GitHub Desktop.
Save raa0121/8196638 to your computer and use it in GitHub Desktop.
var WshShell = new ActiveXObject("WScript.Shell");
var envlist = WshShell.exec("C:\\Windows\\System32\\cmd.exe /c set")
var i=0;
while (!envlist.StdOut.AtEndOfStream){
WScript.Echo(envlist.StdOut.readLine());
i++
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment