File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Cattle Drive and the fly likes Shortcut Key Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Shortcut Key" Watch "Shortcut Key" New topic
Author

Shortcut Key

sherry cuenco
Greenhorn

Joined: May 07, 2003
Posts: 24
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

Joined: Jul 22, 2000
Posts: 9044
    
  10
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.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
John Hembree
hired gun
Ranch Hand

Joined: Mar 07, 2003
Posts: 250

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

Joined: May 07, 2003
Posts: 24
Thanks for your tip.
 
jQuery in Action, 2nd edition
 
subject: Shortcut Key
 
Similar Threads
error in the first program...
call batch or executable script with shortcut key in Win XP
javascript events and global shortcuts
Shortcut key to see possibilities of commands in bash?
creation of exe file