This tip was printed from the MalekTips Computer and Technology Help and Tips website at http://malektips.com.

DOS and Batch Files - Use Your Up Arrow For Latest Dos Commands

The DOSKEY program is very useful for many reasons, but some people feel that they do not need its powerful features and fail to install it. If for no other reason you should install DOSKEY, do so for this trick - with DOSKEY installed, using the up-arrow scrolls through your latest DOS commands. If you use DOS a lot, this is a *lifesaver!*

Install DOSKEY by editing your AUTOEXEC.BAT file with EDIT or any other text editor. Add the line "DOSKEY" or "LH DOSKEY" to the end of your AUTOEXEC.BAT file. If this fails to work, you need to add a line to the end of your AUTOEXEC.BAT file with the full path to the DOSKEY.COM program. If you are using Windows 95, DOSKEY.COM probably is in your C:\WINDOWS\COMMAND directory. If you are using DOS 6.xx or earlier, it is probably in your C:\DOS directory. If you are running Windows XP, DOSKEY may already be running.

For example, if DOSKEY.COM is found in your C:\DOS directory, add a line to the end of your AUTOEXEC.BAT file as follows:

C:\DOS\DOSKEY

DOSKEY takes up just a little bit of memory so if every byte counts, you'll have to live without its usefulness.


Press the "print" button on your browser or select "File" - "Print" to print this tip. Then, return to DOS and Batch Files - Use Your Up Arrow For Latest Dos Commands
 
Standard disclaimer applies - read http://malektips.com/disclaim.html.