I faintly recall that some years ago there was a post about modifying FAR's environment through a BAT file. Is there anyone who can remember and/or find it?
The core of the problem is this: I am running FAR. In it, I can influence its environment with the SET command:
But I can't do that with a BAT file, at least not directly - the BAT file would only affect its own environment which disappears as soon as the BAT file quits. I think the post I am looking for involved some trick or maybe a special execution call which carried changes to the BAT's environment over to the calling FAR. But I can't really remember :-(
The only solution I know of involves running a BAT file which, as its last command, would execute a new instance of FAR. That instance would inherit the BAT's environment, including the changes. Unfortunately it means an unnecessary extra instance, but I can live with it if there is no other way.