• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 168
  • Last Modified:

DOS Command History

I want to be able to use my up arrow key to get to commands I had typed earlier.  Like I can do with NT or Win2K by default.  What do I need to change in Win98 to have my previously type commands available to me?
0
mmedwid
Asked:
mmedwid
  • 3
  • 2
1 Solution
 
LeeTutorretiredCommented:
You need to run a memory-resident program like DOSKEY in your MS-DOS sessions.  You should find DOSKEY in your Windows\Command folder.
0
 
mmedwidAuthor Commented:
I want it to run doskey every time I open a DOS session. Perhaps I should have been more specific.  Thanks.
0
 
LeeTutorretiredCommented:
You can create a batch file with Notepad (or any other straight ASCII text editor) that contains the following:

C:\Windows\Command\Doskey.com

Perhaps a good name for this is RunDkey.bat

Then, navigate in Windows Explorer to the following folder:

C:\Windows\Start Menu\Programs

and find the shortcut for the MSDOS Prompt.  Right click on it and select Properties.  On the Program tab, in the field called Batch file:, type the name of your new batch file (RunDkey.bat).  Then click ok.
0
 
LeeTutorretiredCommented:
I should have said, type the path to your new batch file; for example, if you have a folder named Batch which contains all your batch files, then you would put this in the Batch file field:

C:\Batch\RunDkey.bat

(On the other hand, if you put RunDkey.bat in your Windows folder, you will not need a path, I believe, since the Windows folder should already be in the search path for DOS shortcuts.)

Be sure when you create the RunDkey.bat in Notepad, you name it with quotation marks around the name; like below; otherwise, Notepad might name it RunDkey.bat.txt, since .txt is the normal file extension handled by Notepad.

"RunDkey.bat"
0
 
mmedwidAuthor Commented:
Great - that did the trick.  Thanks much.  -Michael
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now