Aliases are nicknames for command calls and thus supersede a lot of typing. In Linux there exist the command alias, in Windows there is doskey. An alias can be defined as follows:
doskey ls=dir
Typed aliases are volatile , that means, these are no longer available after a recall of the command line console. In order to make them persistent two steps are necessary. Firstly, create a bat-script containing all aliases and save it to an arbitrary location. Secondly, insert a corresponding string value in the Windows registry.
- Open Registry by searching „regedit“
- Open HKEY_CURRENT_USER → SOFTWARE → Microsoft → Command Processor
- Add new String Value called AutoRun with the path to the created bat-script.
Whenever a command line console is opened, the script is loaded and automatically executed in the current session.