I agree with Utilitarian's comments about the current environment. To illustrate his point, you can do the following test:
Personally, I am unaware of how to 'reset' the environment for command prompt or script, but that's not to say it can't be done. Short of doing that, I think Utilitarian's suggestion of writing to a file would be a good idea.
In reply to Re^2: Passing value from IF loop
by dasgar
in thread Passing value from IF loop
by pritesh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |