|even now, i have an alternative.|
to make child program dump its data to a data file, and parent program checks if data file is there, and if it is, it sets its data into parent envirement.
that works without any problem. just it is not instant. but it does not have to be. i can make loop in parrent program which checks for child program dumpfile periodicly.
so, i can alredy make that child program dumps data, and that parrent program collect it.
but do not think about my question like it is about some complex programing problem.
look at my question like this (very simple):
is there a command which i can type in cmd which can affect other cmd envirement variable?
that is my problem. i alredy know how to communicate betwean child and parent program.
just i want to get rid off intermediate file, and make envirement updates direct.
but you should not think about interprocess communication.
just think about this siple version of qouestion, and i will make it into program code which will alow child program to send data to parrent program.
it is possible, because i am alredy doing it, just over data file.
so, just answer this:
can i update envirement of running cmd window from another cmd window?
for example, where is original envirement stored?
if is it in windows registry, at which location?
i think that making global envirement changes will affect parent window too.
just i want it to be applyed immediatly, not after restarting cmd.
that is what i want to know.
is it possible to edit it?
and dealing with communication is my problem. ;)
one more suggestion.
i know of some utilities which are capable of for example hidding other windows, resizing tham, moving tham on screen, and so on.
is there any utility which is capable of updating programs envirenment variables?
i do not see why not.
if there is, i can install it in system32 and use it as a cmd command in my batch script.
of course, that utility can be 32bit or 16bit, but if is 32bit, it have to be configurable from cmd.
now, you know a littlle better what i want.
so, does anyone know anything? :d