Hi Gintautas Kmieliauskas,
If you mean GeoProcessor using, then before calling Execute method you can set environment variables using SetEnvironmentValue method
No.
I want to update the existing environment variables. So that all the GeoProcessing tools (invoked through code or manually) within that particular session will execute based on that.