Windows 10 News and info | Forum
June 27, 2019, Loading... *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: This is a clean Ad-free Forum and protected by StopForumSpam, Project Honeypot, Botscout and AbuseIPDB | This forum does not use audio ads, popups, or other annoyances. New member registration currently disabled.
 
  Website   Home   Windows 8 Website GDPR Help Login Register  
By continuing to use the site or forum, you agree to the use of cookies, find out more by reading our GDPR policy.
Pages: [1]
  Print  
Share this topic on Del.icio.usShare this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on MySpaceShare this topic on RedditShare this topic on StumbleUponShare this topic on TechnoratiShare this topic on TwitterShare this topic on YahooShare this topic on Google buzz
Author Topic: Pressing F7 in the Command Prompt Lists Previously Entered Commands  (Read 186 times)
javajolt
Administrator
Hero Member
*****
Online Online

Gender: Male
United States United States

Posts: 30162


I Do Windows


WWW Email
« on: December 10, 2018, 10:38:30 PM »
ReplyReply

Did you know that pressing the F7 key while using the Windows command prompt will display a box containing a list of previously typed commands? If not, then these tips may help you use the Command Prompt more efficiently.

This feature was originally part of the DOSKEY program that was introduced in MS-DOS and was loaded as a TSR (Terminate and stay resident program). While the program is still available to this day, much of its functionality is now built directly into the Windows command prompt.


Command Prompt Command History

You can navigate through this list using the up and down arrow keys on the keyboard.

When the commands are stored in the history they are also associated with an index number. You can then use the F9 key to cause the Command Prompt to ask you what command number you wish to enter. By entering a number and pressing enter, the command will be executed.  For example, using the commands illustrated in the window above, if you press F9 and entered the number 10, it would execute the dir command.


Enter Command Number

In addition to opening a list of entered commands, you can also clear the history by pressing Alt + F7. This keyboard combination will clear all of the stored history and F7 will not work again until after another command is entered.

Last, but not least, another useful feature that you can perform in the command prompt is to use the up and down arrow keys to go through a list of previously entered commands. This makes it easy to execute the same command over and over by typing the command, pressing enter, pressing the up arrow so the command appears again, and pressing enter again. You can repeat this as many times as you want the command to run.

source
Logged



Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2017, Simple Machines

Google visited last this page April 26, 2019, 07:36:00 PM