SETP

<< Click to Display Table of Contents >>

Navigation:  TCC > Commands >

SETP

Purpose:Create, modify, or display an environment variable in another process

 

Format:SETP pid [/P /R filename] var[=value]

 

pidProcess ID, or the window title, or the task name
varThe variable name to set. If you are displaying matching variables, the name can contain wildcards.
valueThe value of the variable

 

/PPause after displaying each page
/RRead 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.