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
Post a Comment