Purpose: | Create, modify, or display an environment variable in another process |
Format: | SETP pid [/= /P /R filename] var[=value] |
pid | Process ID, or the window title, or the task name |
var | The variable name to set. If you are displaying matching variables, the name can contain wildcards. |
value | The value of the variable |
/P | Pause after displaying each page |
/R | Read variables and values from a file |
See also UNSETP.
Usage:
SETP works by injecting a dll into the specified process and executing a command in that dll to set the environment variable. Depending on your Windows configuration, you may need to be running an elevated session for SETP to work.
If you don't enter any arguments, SETP will display its command dialog.
Example:
Set a variable in the process whose window title begins with "ABC":
setp "ABC*" testvar=abcdefg
Options: