Please enable JavaScript to view this site.

Take Command / TCC Help v. 28

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.

 

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:

 

/=Display the SETP command dialog to help you set the command line options. The /= option can be anywhere on the line; additional options will set the appropriate fields in the command dialog.