• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Shortcut Key

 
sherry cuenco
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been using the F3 key to recall the latest command I typed from the prompt (i.e. Javac Hundred.java). Then I type another command (i.e. Java Hundred Gertrude). Is there a shortcut key that would recall not only the latest command I typed but a history of them? I want to go back to the compiler command so I just use right arrow key or F1. Is there a better way?
 
Marilyn de Queiroz
Sheriff
Posts: 9067
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on your operating system. If you're using Win2k (and probably true with XP as well) the doskey command is built in and just hitting your up-arrow will bring back the last command. You can do this repeatedly for other previous commands.

If you're using win9x you can install doskey very easily.
 
John Hembree
hired gun
Ranch Hand
Posts: 250
MS IE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For NT, W2K, and XP the doskey feature depends on the method that you use to get to dos. If you get there using "command" then it doesn't work by default, if you use "cmd" then the doskey feature is present. For the Win9x systems you'll need to add doskey to your autoexec.bat or dos shortcut so that it's there everytime otherwise when you get to dos type doskey to load it.
 
sherry cuenco
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your tip.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic