Changing environment vars of parent process
What I'm looking to do is have my .exe set an environment variable in the calling .bat file. Basically looking for a source-equivalent of the SET command.
Is there any way to do this without kludges?
I looked into senvar by Ed Schwartz which claims to do the trick. But it seems to have no effect under XP. Then again at least it doesn't crash like some other approaches I've tried.
The current approach is something like:
myapp.exe > tempfile.bat
This, unfortuntely, is unacceptable due to the disk i/o. (The boss's constraint, not mine)