How not to inherit system environment when running programms

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
rytrom
Junior Member
Junior Member
Posts: 6
Joined: 2003-09-10, 14:58 UTC

How not to inherit system environment when running programms

Post by *rytrom »

When you run a progam from a commander the program inherits all system environment from the commander, but sometimes it's not useful (in my case it's always not) - I prefer to take it from the system environment as though the program is being started from windows explorer. Is there a way to configure it?
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

AFAIK, there is no way to do this, except quickly restarting TC.
I switched to Linux, bye and thanks for all the fish!
rytrom
Junior Member
Junior Member
Posts: 6
Joined: 2003-09-10, 14:58 UTC

Post by *rytrom »

This "workaround" I use too. But would it be cool to skip several unecessary clicks? IMHO it's very easy to implement. I suggest to create a feature request from it.
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

I'm actually for it, i think it is a good idea.
I switched to Linux, bye and thanks for all the fish!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50505
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

If anyone can tell me how to get access to the system environment, please let me know! To my knowledge there are no functions to do it, except for searching through the registry, but the location isn't documented and may vary between Windows versions...
Author of Total Commander
https://www.ghisler.com
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

2ghisler(Author)
Maybe you could try to contact Mark Russinovich from http://www.sysinternals.com/
He wrote the wonderful Process Explorer, which can show the environment variables for any process.
I switched to Linux, bye and thanks for all the fish!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50505
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hmm, I don't want to peek into other program's environment, this is certainly done with dirty tricks like dll injection into the program's process space. Such low level stuff may or may not work in newer Windows versions.
Author of Total Commander
https://www.ghisler.com
Post Reply