Persistent Aliases - Windows DOSKey

Thanks to...
Setup Persistent Aliases & Macros in Windows Command Prompt (cmd.exe) using DOSKey

REM - remark in a .bat file
DOSKey - Macro functionality in DOS

---- %USERPROFILE%\Dropbox\Technology\utils\cmd\cmd_startup.bat ----

@echo off

REM filespec (presumably always to .bat) is run every time cmd starts. (Currently, the value is “”.)
REM HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun
REM save this file here %USERPROFILE%\Dropbox\Technology\utils\cmd\cmd_startup.bat

DOSKEY ls=dir
DOSKEY cd=cd $1$Tdir
DOSKEY clear=cls
DOSKEY alias=if “.$*.” == “..” ( DOSKEY /MACROS ) else ( doskey $* )

---- ----

Popular Posts