Very interesting Windows XP command prompt tips

  
        Windows XP still retains a DOS-like command window. Although we don't often use DOS commands in the graphics operating system, sometimes we must be familiar with these commands, and there are many interesting tricks in the Windows XP command window. This article will introduce you to the more commonly used Windows XP command prompt tips.
Preparation: Click "Start → Programs → Accessories → Command Prompt" or "Start → Run", then enter "CMD" to enter the command to the prompt state.
1. Automatic memory function
The command window has a command memory function. All command lines entered in the window will be automatically memorized. You can call the commands you just entered one by one by clicking the up and down arrow keys on the keyboard. Come out, similar to the DOSKEY directive in DOS, except that it is built into the command window.
2, interesting prompt
interesting prompt command "prompt", the command has a lot of parameters, detailed parameters, please run prompt /? at the prompt. Once you understand the effects of these parameters, you can create a txt file, name it run.bat, and type "prompt $V$D$G$G". Open the Registry Editor, expand HKEY_LOCAL_MacHINE\\SOFTWARE\\Microsoft\\Command Processor\\, and then double-click the "AutoRun" key on the right to change it to %systemroot%\ un.bat and save the settings to exit. Reopening the command prompt, there is a very rich prompt text.
3, copy the window content
The copy of the string is quite useful for the command window. You can directly use the right-click copy method. In Windows XP, for all content, you can directly click on "Select All" in the right mouse button to select, and for the specified range of content, you can first right click on the "mark" item, then move the mouse to At the command character to be copied, drag the mouse to select the string. These strings will appear on the screen in reverse. Immediately click the right mouse button or press the Enter key, then move to the target position, right click and select "Paste. "" Such a command string is automatically copied to the specified location.
4, change the window characteristics
Windowsxp can personalize the title, color, etc. of its cmd window, frequently used related commands are as follows:
a) change the title: CMD /k TITLE new title name
b) Change the command character: CMD /K PROMPT [text] (text is the new command prompt)
c) Change the foreground color and background color: CMD /t:gf (g is the specified background color of ten Hexadecimal numbers, commonly used colors have the following values: 0 black, 1 blue, 2 green, 3 light green, 4 red, 5 purple, 6 yellow, 7 white, 8 gray, 9 light blue, A light green, B Light blue, C light red, D light purple, E light yellow, F bright white.
5, Command window shortcuts
ESC: Clear current command line;
F7: Display command history, Give all the commands that have been entered in the form of a graphical list window, and use the up and down arrow keys to select the command again.
F8: Search the history of the command, cycle through all the commands that were entered until the Enter key is pressed So far;
F9: Select the command by number to the graphical dialog box You are required to enter the number corresponding to the command (starting at 0) and display the command on the screen;
Ctrl+H: delete one character to the left of the cursor;
Ctrl+C Ctrl+Break, forcibly abort Command execution;
Ctrl+M: indicates the carriage return confirmation key;
Alt+F7: clears all command history records that have been entered;
Alt+PrintScreen: intercepts the contents of the current command window on the screen. Br> 6, cute command line with color
In the default state, the command line is always white on black, just start from here. Enter cmd in the run dialog, open a command prompt, the title of the open window Right click, select "Properties" in the pop-up menu, and switch the open window to the "Color" tab, select the screen text, screen background options, and set the corresponding color, note that when we change the settings, The bottom will be displayed in real time. According to this, we can make adjustments according to our own preferences. After saving the settings, we will ask the application properties and select “Save Properties for later”. The window with the same title is used, so that it will not be valid only for the current window.
7. Save the file list information
Sometimes we need to print out the file list information in a directory on the hard disk. You can use the following method: Enter the command DIR>C:\\1.TXT and press Enter, so the file list of the current directory will be saved to the 1.txt file of the C drive.

Copyright © Windows knowledge All Rights Reserved