The SETP command, part of the free TCC-RT, allows one to create, modify, or display an environment variable in another process.
Ref: SETP Command: https://jpsoft.com/help/setp.htm
Ref: TCC-RT: https://jpsoft.com/products/tcc-rt-runtime.html
SETP works by injecting a dll into the specified process and executing a command in that dll to set the environment variable.
On my Windows 7 64-bit system, SETP works great, as long as the other process is a 64-bit process.
If the other process is a 32-bit process, SETP will not work.
JPSoftware, maker of TCC-RT, no longer wants to support 32-bit apps.
Ref: https://jpsoft.com/forums/threads/setp- ... ess.8653/
Is there another method I can use to modify an environment variable in a 32-bit process, from a 64-bit process?
Regards,
Joe
Create, modify, or display an environment variable in another process
Moderator: DosItHelp
-
- Posts: 18
- Joined: 11 Jul 2018 05:05
Re: Create, modify, or display an environment variable in another process
Changing a foreign process environment is actually not intended. Not even changes in the parent process environment. Child processes inherit the environment from their parent processes, not vice versa. Hacks like DLL injection are needed for that. The only tool I'm aware of is editv. But it allows only to change the environment of the parent process.
Steffen
Steffen