# “Advanced” Configuration

This chapter presents the “standard” configuration of DMK. However the flexibility of the tool permits customizations and extensions.

## Aliases & Variables Management <a href="#user-content-41-aliases-variables-management" id="user-content-41-aliases-variables-management"></a>

The following paragraphs explain how to create your own aliases and variables.

### Declare an alias <a href="#user-content-411-declare-an-alias" id="user-content-411-declare-an-alias"></a>

Aliases are declared using the following syntax

alias::::\[var|novar]\_\[force|noforce]::::# comment

\[var|novar] var : creates automatically a variable with the name of the alias novar : doesn’t create the above variable

\[force|noforce] force : if a command or an alias already exists it’s overwritten noforce: a warning is printed instead of overwriting the existing alias or command

Example of a warning printout

```
2012-06-22_15-31-19::DMK.pm::ComputeConfig           ::WARNING ==> %DMK_HOME%\etc\dmk.conf alias/command "u" is already in use, Please use FORCE option to override it
```

### Declare a variable <a href="#user-content-412declare-a-variable" id="user-content-412declare-a-variable"></a>

Variable are declared using the following syntax

var::::\[ =|+|-]::\[ begin|end|nooption|warn|nowarn]::::

\[=|+|-]\
\= : Equal operator\
\+ : expand an existing variable\
\- : contract, remove element from a variable

\[begin|end|noption|warn|nowarn] begin/end : works only with the operators \[+|-] nooption|warn : default behave print a warning in case the variable exists nowarn : disable warning and overwrites the variable

Example of a warning printout

```
2012-06-22_18-46-09::DMK.pm::ModifyConfigVar         ::WARNING ==> Variable  : WEBLOGIC_BASE has been overwritten
2012-06-22_18-46-09::DMK.pm::ModifyConfigVar         ::WARNING ==> Old value : "D:\app\weblogic"
2012-06-22_18-46-09::DMK.pm::ModifyConfigVar         ::WARNING ==> New value : "D:\app\oracle"
```

## &#x20;<a href="#user-content-5-structure" id="user-content-5-structure"></a>
