/**
 * +----------------------------------------------------------------------------+
 * |                          Jeffrey M. Hunter                                 |
 * |                      jhunter@idevelopment.info                             |
 * |                         www.idevelopment.info                              |
 * |----------------------------------------------------------------------------|
 * |      Copyright (c) 1998-2011 Jeffrey M. Hunter. All rights reserved.       |
 * |----------------------------------------------------------------------------|
 * | FILE       : EnvironmentVariables.js                                       |
 * | CLASS      : Miscellaneous Functions                                       |
 * | PURPOSE    : Demonstrates how to read environment variables.               |
 * | PARAMETERS : None                                                          |
 * | USAGE      : cscript EnvironmentVariables.js //NoLogo                      |
 * | NOTE       : As with any code, ensure to test this script in a development |
 * |              environment before attempting to run it in production.        |
 * +----------------------------------------------------------------------------+
 **/


var g_objShell, strTempVariable;

g_objShell = new ActiveXObject("WScript.Shell");

strTempVariable = g_objShell.ExpandEnvironmentStrings("%temp%");

WScript.Echo("TEMP = " + strTempVariable);

g_objShell = null;

WScript.Quit(0);

