doskey
doskey
learn.microsoft.com
doskey
Reference article for the doskey command and Doskey.exe, which recalls previously entered command-line commands, edits command lines, and creates macros.

Getting that up-arrow command recall in DOS 6.22... 👌 straight to the AUTOEXEC.BAT