Each process has its own environment it inherits from its parent when its created. You can't change another process's environment.
The usual trick is to have the batch file display its environment and have the caller parse that.
In reply to Re: Getting the ENV from the .bat file
by ikegami
in thread Getting the ENV from the .bat file
by sowndarr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |