If you use long commands or often repeat commands then use doskey. This commands remembers all your commands you have used in current session, use arrow keys for displaying commands you have used. You can also use F7 , F9 keys. F7 keys provide a list of all commands you have used and F9 ask you the command number to execute. You can check command number by using F7.