I'd like temporarily set Environment variables like Catalina and Java_Home using a batch file, without making persistent changes.
Changes should be removed after the execution of a web-page.
There's a way to do it?
I'd like temporarily set Environment variables like Catalina and Java_Home using a batch file, without making persistent changes.
Changes should be removed after the execution of a web-page.
There's a way to do it?
© 2022 - 2024 — McMap. All rights reserved.
setlocal
is generally good practice as well. Changes to variables made within asetlocal
session are forgotten when the script ends orendlocal
is encountered. As a bonus,setlocal
also preserves the current working directory. – Basutoland