What you wrote has no semblance to the code in the nodes I linked. Please read Get default login environment.
As to your code, did you try it? If so, what were the results?
In reply to Re^3: Getting the ENV from the .bat file
by Corion
in thread Getting the ENV from the .bat file
by sowndarr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |