Create a doskey macro file:

ls=dir /q $1
ip=ipconfig $*
np=notepad++.exe
vs=devenv
  • Copy this file to a specified location e.g. c:\utilities
  • Open the a command prompt
  • Edit the Shortcut tab, under Target
  • Copy the following into the Target path
%windir%\system32\cmd.exe /k doskey /macrofile=c:\utilities\macros.doskey && Title HappyConsole

CMD Parameters

/K - Carries out the command specified by string but remains.

Doskey Parameters

/macrofile = <FileName> Specifies a file that contains the macros that you want to install.