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=