Solved

DOS Command History

Posted on 2002-05-18
5
126 Views
Last Modified: 2013-12-28
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
Comment
Question by:mmedwid
  • 3
  • 2
5 Comments
 
LVL 59

Expert Comment

by:LeeTutor
ID: 7018441
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
 
LVL 1

Author Comment

by:mmedwid
ID: 7018470
I want it to run doskey every time I open a DOS session. Perhaps I should have been more specific.  Thanks.
0
 
LVL 59

Expert Comment

by:LeeTutor
ID: 7018501
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
 
LVL 59

Accepted Solution

by:
LeeTutor earned 50 total points
ID: 7018502
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
 
LVL 1

Author Comment

by:mmedwid
ID: 7018512
Great - that did the trick.  Thanks much.  -Michael
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Is it true tt IIS7 can't support TLSv1.2 if OS is on Win2008 1 42
Droid 4 15 63
Convert MSI to MSM 1 27
M2 drive not showing up 16 59
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now