What to type on DOS to repeat the last command

  • Thread starter Thread starter fourier jr
  • Start date Start date
  • Tags Tags
    Dos Type
Click For Summary

Discussion Overview

The discussion centers around how to repeat the last command in DOS, exploring various methods and functionalities available within the DOS command line interface. The scope includes practical usage tips and features of DOS commands.

Discussion Character

  • Technical explanation

Main Points Raised

  • Some participants suggest using the up arrow key to recall the last command.
  • Others mention that in some older versions of DOS, the command DOSKEY may need to be typed first for the up arrow feature to work.
  • One participant notes that pressing also repeats the last command, while provides a history of commands for selection.
  • Another participant points out issues accessing file contents through the "type" command in DOS.
  • It is mentioned that the left and right arrow keys can be used to edit the recalled command line.

Areas of Agreement / Disagreement

Participants generally agree on the methods to repeat the last command, such as using the up arrow and , but there are varying experiences regarding the necessity of DOSKEY and issues with the "type" command.

Contextual Notes

Some limitations include potential differences in DOS versions and the need for specific commands to enable certain features, which may not be universally applicable.

fourier jr
Messages
764
Reaction score
13
does anyone remember DOS? what do I type to repeat the last thing I typed, instead of typing it all out again, if there is such a thing?
 
Computer science news on Phys.org
If I recall correctly you can just press the up arrow
 
junglebeast said:
If I recall correctly you can just press the up arrow

On some older OS's implementation of the DOS box, you may need to type DOSKEY first, before the up arrow recall feature works. In your DOS box, just type HELP DOSKEY to learn more about the function. You can try the up arrow to see if it works at recalling the last command. If it doesn't, just type DOSKEY, and after that (in that active DOS window), it should keep working.
 
Last edited:
wow that's even easier than I thought... thanks for the tip :smile:
 
Up arrow or <F3> still work in the dos console window. <F7> brings up a history of commands, allowing you to choose one from the list.
 
the up -down key will do.but i have a problem accessing files contentsthrough the dos .when i type "type"
 
Yes, as said, F3 repeats the previous command or the up arrow key... You can then use the left and right arrow keys to edit the line.

j
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
Replies
10
Views
4K
  • · Replies 8 ·
Replies
8
Views
11K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
10
Views
3K
  • · Replies 16 ·
Replies
16
Views
5K
Replies
1
Views
4K