Join AllAdvantage.com

WEBrewery


Java Tip #1: Getting a Command History in DOS

This tip is for those using the JDK in the DOS environment. Retyping "javac MyApplet.class" over and over again when debugging an applet is really an unnecessary pain. If you're used to the Bourne shell, you're probably accustomed to using the arrow keys to cycle through a command history. By default, this feature is not installed in DOS. To activate it, simply add the following line to your Autoexec.bat file:

     DOSKEY / INSERT

Reboot and you can now use the arrow keys to cycle through past commands as well as use the F8 key to finish a partially typed command that's already been typed before.


For Beginners | Jargon | General Tips | Swing | Books | Links | WEBrewery.com

Java is a trademark of Sun Microsystems.

Copyright © 1999 WEBrewery. All rights reserved.
Reproduction in whole or in part in any form or medium without
the express written permission of WEBrewery is prohibited.
brewer@webrewery.com

Aid Kits

Aid Kits

www.afirstaid.com