有没有办法在批处理脚本中推送和弹出所有环境变量?例如,我想做这样的事情:
pushEnvironmentVariables
call "%VS140COMNTOOLS%\vsvars32.bat"
(do some stuff...)
popEnvironmentVariables
pushEnvironmentVariables
call "%VS90COMNTOOLS%\vsvars32.bat"
(do some other stuff...)
popEnvironmentVariables
Run Code Online (Sandbox Code Playgroud)