Variables

 
The majority of the script entries can have variables embedded in them. These are predefined strings enclosed in percent characters %. AeTraymenu translates the variables to their literal values, depending on e.g. the system configuration. For example, %ProgramFiles%, as described below, would translate to "C:\Program Files" on most systems.

You can define your own variables in the [Variables] section.

If a variable has been marked as a path variable, AeTrayMenu automatically removes any double backslashes that are caused by the variable's contents ending in a backslash. For example, if a particular path variable myvar would contain the value C:\, and you would type %myvar%\file, AeTrayMenu would translate this to C:\file and not C:\\file.

In this documentation, parameters and directives that may include variables are marked with this icon: VAR.

Built-in Variables

Besides the variables you can define in the [Variables] section, AeTrayMenu already provides the following variables:
%AeTrayMenuPath% (path variable)
The directory in which the AeTrayMenu executable is located.
%Cmd%
The full pathname of the system's standard command interpreter. On Windows NT/2000/XP, this is Windows\System32\cmd.exe. On Windows 9x/Me, this is Windows\COMMAND.COM. Note that the COMSPEC environment variable is not used when expanding this constant.
%CommonFiles% (path variable)
Common Files. The path of the system's Common Files directory, typically "C:\Program Files\Common Files".
%Program Files% (path variable)
Program Files. The path of the system's Program Files directory, typically "C:\Program Files".
%System% (path variable)
The system's Windows System directory (System32 on Windows NT platforms).
%SysDrive% (path variable)
The drive onto which Windows has been installed.
%Temp% (path variable)
The Windows temporary directory. This is the value of the user's TMP or TEMP environment variable.
%Windows% (path variable)
The system's Windows directory, typically "C:\WINDOWS" or "C:\WINNT" on NT systems.

See also See Also
[Variables] section