2010年8月21日星期六

Eight Windows system command prompt special skills

I believe most people have already familiar with Le De Microsoft Windows user interface, but not all the features Bixujiezhu Ta can be achieved, so even in Windows 2000 and Windows XP li still Baoliu the Lei Si DOS command window, Dangrantamen and Yi Wang Windows 9x version under the command window there are many different, and therefore there are many special application skills, we might take a look together.

Click the "Start → Programs → Accessories → Command Prompt" or "Start → Run," and then enter "CMD" into the command can be prompt.

1 Using automatic memory function

Command window with the command and memory function, you enter in the window all the command line will be automatically memory down, by clicking up and down arrow keys on the keyboard can be the command just entered one by one taken out of tune, similar to the DOS in the DOSKEY instructions It just built this instruction in the command window. This memory can relieve you of the pain of repeatedly enter the same commands, for network debugging environment is particularly useful, can save you a lot of duplication of effort and valuable time.

2, fun prompt

You will be imagined to make your command prompt into the present time? Can display the current Windows XP version number? If you want to be able to achieve. Here we will teach you how to achieve.

Here we make use of a prompt in the DOS command, which a lot of useful parameters, the role of detailed parameters prompt the reader in the state of running prompt /? To Search. Understanding of the role of these parameters, you can create a path in the install file, name it as run.bat, the contents of the folder for the prompt $ V $ D $ G $ G. Next, open the Registry Editor, and then click Browse to HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Command Processor \, then double-click on the right of the AutoRun key, be revised to% systemroot% \ run.bat, save your settings exit. Re-open the command prompt, how is not made changes. In fact, according to prompt the parameters as long as you can define your own rich text prompt.

3, copy the contents of the window

Copy of the string in terms of useful window for the command. But Windows 2000 and Windows XP command prompt copy, quite different from previous versions, even if not the same between the two, the former is the use of marker replication method, while the latter directly by right-clicking the replication method. Specifically described as follows:

In Windows XP, the for all, you can click the right mouse button in the "Select" to select, and for the contents of the specified range, you can right click the first election in which the "marked" item, then move the mouse to The command character to be copied Department, drag the mouse to select this string, the string will appear immediately in the form of anti-white screen, click the right mouse button or press the Enter key, then move to the target location, right-click and select "Paste "Such a command string is automatically copied to the specified location.

In Windows 2000 下, as in the command window does not support the right of the menu (Dan supports drag the mouse of choice), so it gives up one kind of simplicity of the Fang Shi Yong Geng Wei-day command characters of Fu Zhi, first you must hold down the left mouse button, drag the selected command string to be copied, they will be anti-white form on the screen, first click the mouse to the right (ie implementation of the copy operation), move your mouse over the target location, and then click the left mouse key, the command character is automatically pasted into a new location on the!

4, change the window properties

If you long to work at the command prompt can also self-adjust its appearance to suit their habits, such as their window title, color and other personalized settings, frequent use of the relevant commands are:

a) change the title: CMD / k TITLE new title name

b) to change the command character: CMD / K PROMPT [text] (text for the new command prompt)

c) to change the foreground and background colors: CMD / t: gf (g is the background color specified in hexadecimal numbers, common color 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 blue, C light red, D light purple, E pale yellow, F white light.

5, the command window shortcut keys

In the command window has many useful shortcut keys, can greatly accelerate the speed of your input and debugging, but some of the features also provide a graphical way.

ESC: Clear the current command line;

F7: Display the command history in the form of a graphic window shows a list of all who enter the command, and can be up and down arrow keys to select again the implementation of the order.

F8: search command history, cycle show all who enter the command, press the Enter key until the date;

F9: select the command by numbers, graphical dialog box asking for your input command corresponding to the number (starting from 0), and the order displayed on the screen;

Ctrl + H: Remove the cursor left one character;

Ctrl + C Ctrl + Break, forced suspension of command;

Ctrl + M: said press Enter key;

Alt + F7: Clear all who enter the command history;

Alt + PrintScreen: interception of the screen window of the contents of the current command.

6, good "color" of the command line

By default command line is always black and white, from where the first surgery. In the Run dialog box, type cmd, open a command prompt, in the open right click on the title of the window, the pop-up menu, select "Properties" and open the window switch to the "Color" tab, and then click to select screen text, screen background options, and set the appropriate color, note that when we changed settings Shi Shi Zhi Hou will be displayed at the bottom, under which we can enjoy in a timely manner according to their own adjustments to make after the application save the settings will be asked properties, choose "Save property for later use with the same title of the window," so they would not only effect the current window.

7, quickly select files and folders

At the command prompt, we can press the Tab key to select the current directory the following files and folders, and its order of selection the basis of certain assessment, 按下 Shift + Tab key combination can also be used against the direction of choice, is convenience. Note that at this time we have chosen document also includes hidden files included.

8, save the file list information

Sometimes we need to drive in the list of files in a directory of all information printed, then you can use the following method: type the command DIR> C: \ 1.TXT after the carriage return, so the current directory list of files will be saved to C disk 1.txt file.

没有评论:

发表评论