Adding aliases to Windows
Open the Registry Editor and go to the following key
Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor
and add the key AutoRun with the value of the file containing the aliases. In my case this is
"%USERPROFILE%\alias.cmd"
Save the change to the registry and restart the command prompt. Currently my alias.cmd contains the following:
:: Registry path: Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor
:: Key: AutoRun
:: Value: "%USERPROFILE%\alias.cmd"
@echo off
DOSKEY alias="C:\Program Files (x86)\Notepad++\notepad++.exe" "%USERPROFILE%\alias.cmd"
DOSKEY ls=dir /B
DOSKEY proj1=cd "%USERPROFILE%\Documents\Projects\proj1"