windows - How to restore all environment variables to default in a batch script -


i have .bat script. runs commands , alters/adds environment variables. then, @ point need revert them default if i'm exiting script , starting new 1 scratch.
so, need 1 of two:
1. either clear variables (restore defaults fresh cmd session gets);
2. or push variables when start script , pop later revert these values.

how can that?

have tried using setlocal? here information on it: http://ss64.com/nt/setlocal.html


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -