1

Closed

Clean up script environment variables

description

Remove the environment variables created during the run of the script.
 
Include this before adding the Tools directory, to save the original PATH variable:
SET OLDPATH=%PATH%
 
This snippit is placed at the very end of the script. For reference, I've included some of the additional variables I added for other functions (and which are included in other Issues I've posted). Obviously, any relevant variable can be included here as needed.
 
REM Unset variables used in script and restore original PATH
 
SET PATH=%OLDPATH%
SET OLDPATH=
SET TOOLS=
SET TOOLSDIR=
SET LOGS=
SET EMAIL=
SET SIDS=
SET OSNAME=
SET MVERSION=
Closed Mar 22, 2012 at 6:11 AM by RussMcRee

comments

RussMcRee wrote Mar 22, 2012 at 6:11 AM

Update included in 2.0 stable release.

wrote Mar 22, 2012 at 6:11 AM

wrote Feb 13, 2013 at 8:09 PM

wrote May 16, 2013 at 1:09 AM