Purpose:Edit an environment variable, alias or function definition


Format:ESET [/= /A /B /D /F /GL /LL /S /U /V] [/C var1 var2] name


nameThe name of an environment variable, function or alias to edit.



/K"::regex" (regex mask)

/B(atch variable)

/LL (local list)

/C(opy value)

/S(ystem variable)

/D(efault environment)

/U(ser variable)


/V(olatile variable)

/GL (global list)






File Completion Syntax:


The default filename completion syntax is: [/a] aliases [/f] functions [1*] variables




ESET allows you to edit environment variables, aliases or user-defined functions using line editing commands (see Command Line Editing), or in a popup window.


Unless a specific data type is specified by one of the option switches /A, /D, /F, /S, /U or /V, ESET will search for name among environment variables first and then among aliases, thus if name is both a variable and an alias, ESET will edit the variable name, and ignore the alias name.


To edit variables defined in the Windows Registry or to edit functions, you must use the appropriate option switch.


If you are editing a typed environment variable (see SET /T), ESET will create a matching regular expression mask for the input.


If you don't enter any arguments, ESET will display its command dialog.


Note: You cannot use ESET with GOSUB variables.


If you have enabled global aliases (see ALIAS), any changes made to an alias with ESET will immediately affect all other copies of TCC which are using the same alias list. Similarly, if you have enabled global functions (see FUNCTION), any changes made to a function using ESET /F will immediately affect all other copies of TCC which are using the same function list.


ESET will default to looking in the local alias or function list (if it exists). If the name isn't found, ESET will look in the global list (if it exists).


ESET supports filename completion and completion of internal variables and variable functions.


Registry Variables: Default, System, User, and Volatile registry variables can be manipulated with the ESET command's /D, /S, /U and /V switches, respectively. For example, to edit volatile variable myvar from the registry, use:


eset /v myvar


Use caution when directly modifying registry variables as they may be essential to various Windows processes and applications.




To edit the executable file search path:


eset path



To create and then edit an alias:


alias d = dir /d/j/p

eset d

d=dir /d/j/p




/=Display the ESET 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.


/AEdit the named alias even if an environment variable of the same name exists. If you have an alias and an environment variable with the same name, you must use this switch to be able to edit the alias.


/BEdit a batch variable (%1 - %n). Only valid when TCC is executing a batch file.


/CCopy the value from an existing variable, alias, or function. The syntax is:


ESET /c var1 var2


where var1 is the variable whose value you want to copy, and var2 is the variable (new or existing) that you want to update.


/DEdit a "default" variable in the registry (HKU\.DEFAULT\Environment).


/FEdit a user-defined function.


/GLLook for the alias or function in the global list


/K"::regex"Regular expression mask for the input.


/LLLook for the alias or function in the local list


/SEdit a "system" variable in the registry  (HKLM\System\CurrentControlSet\Control\Session Manager\Environment).


/UEdit a "user" variable in the registry (HKCU\Environment).


/VEdit a "volatile" variable in the registry (HKCU\Volatile Environment).


/WOpen the alias list / environment / function list in a popup window and select the line to edit. You can search, edit, and delete entries in the window. If you include an argument after the /W option, the popup window will display only those entries that match the argument (including wildcards).


ESET /W can be combined with a registry environment key (/S, /U, /D, /V) to edit the Windows registry environment values.