Program Aliases and the Windows Command Line

I was looking for a nice way to alias ’emacs’ at the Windows command line, and learned a new thing about the ‘doskey’ command.

doskey emacs=c:\emacs\bin\runemacs.exe $*

will let you type:

c:>emacs somefile.bat

and pop up an emacs window to edit that file, which is a handy thing if you want to quickly edit a file while you already have a terminal open.

Also described is adding an env.cmd file and changing your cmd-loading shortcut to initialize your terminal with the doskey and other handy things.