ESET

Print Topic  Return to Overview  Previous Topic  Next Topic 
Purpose:Edit an environment variable, alias or function definition.

 

Format:ESET [/A /D /F /S /U /V /W] name

 

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

 

/A(lias)

/U(ser variable)

/D(efault environment)

/V(olatile variable)

/F(unction)

/W(indowed Editing)

/S(ystem variable)

 

 

See also:  ALIAS, FUNCTION, SET, UNALIAS, UNFUNCTION, and UNSET.

 

Usage:

 

ESET allows you to edit an environment variable, alias or function definition using line editing commands (see Command Line Editing).

 

For example, to edit the executable file search path:

 

eset path

path=c:\;c:\dos;c:\util

 

To create and then edit an alias:

 

alias d = dir /d/j/p

eset d

d=dir /d/j/p

 

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.

 

Environment variable and alias names are limited to 80 characters. The total length of the name and value combined is limited by the maximum line length (16,383 characters). If you use special techniques to create a longer environment variable, ESET will edit it, provided it contains no more than 16,383 characters.

 

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.

 

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.

 

Options:

 

/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.

 

/FEdit a user-defined function.

 

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

 

/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).

 

/WEdit the environment variable, alias, or function list in a popup window like that used by the Batch File Debugger.  Note that any variable name passed to ESET will be ignored when this option is used. Non-environment variables (/D, /S, /U, /V) may not be edited with this option.

 

 

Topic "eset.htm" last edited 4/27/2008. ©2008  JP Software, Inc.
Keywords: ESET,Aliases,ALIAS,UNALIAS,SET,UNSET,Variables,Registry,Environment,Default Variables,User Variables,System Variables,Volatile Variables