To display a list of commands entered in a current DOS prompt session under Windows XP, just enter in the following command at the DOS prompt:
DOSKEY /history
If this doesn”t work, try reinstalling a new version of DOSKEY by entering the following command at the DOS prompt:
DOSKEY /reinstall