From: http://blog.csdn.net/kongbu0622/article/details/3478945
From http://bbs.bathome.cn/viewthread.php? Tid = 2516
When we query the help information of a command in the CMD window, the help information is displayed in the command line window. After the command line window is closed, the help information is invisible, if you want to see it again next time, you have to enter the query command in the command line window, which is cumbersome.
Is there a way to save the help information displayed in the command line window?
The answer is yes, and there are more than one answer.
The tedious method is to copy the information in the command line window and paste it into the text to save it. This operation is tedious: Right-click the command line window, select "mark", use the mouse to pull out the copy range, press enter, and paste it into the text.
The efficient method is to use the redirection symbol to redirect the information originally output to the CMD window to a text file.
There are two redirection symbols:> and>. They are used to change the output direction of various prompts and output the prompt information to a specified place-various prompts are output to the screen by default. Example: tree/?> Help.txt: This command redirects the help information of the Tree Command to the help.txt file. Help> NUL redirects the prompt information of the help command to a null device (NUL indicates an empty device ).
Want to see what basic commands are available in cmd? In the CMD window, enter help. To save the basic command information, use help> D:/list.txt. Then, open the list.txt file in the ddisk root directory.
& Gt; and & gt; both serve as redirection prompts, but their functions are slightly different.A single ">" indicates that the redirection prompt information is overwritten. That is to say, if the destination already has content, the original content will be cleared and filled with new content.> indicates the redirection prompt information in append mode. That is to say, if the destination has content, the original content will remain unchanged and new content will be appended after the original content.For example, assume that the content in D:/test.txt is I love batch. Then, in the CMD window, use the following two statements: Echo Me, Too> D:/test.txt and echo Me, Too> D:/test.txt. After the first sentence is used, test.txt contains only one line of content: me,too, and after using the second sentence, test.txt will have two lines of content, namely
Love batch, me, too.
From http://bbs.bathome.cn/viewthread.php? Tid = 2516
When we query the help information of a command in the CMD window, the help information is displayed in the command line window. After the command line window is closed, the help information is invisible, if you want to see it again next time, you have to enter the query command in the command line window, which is cumbersome.
Is there a way to save the help information displayed in the command line window?
The answer is yes, and there are more than one answer.
The tedious method is to copy the information in the command line window and paste it into the text to save it. This operation is tedious: Right-click the command line window, select "mark", use the mouse to pull out the copy range, press enter, and paste it into the text.
The efficient method is to use the redirection symbol to redirect the information originally output to the CMD window to a text file.
There are two redirection symbols:> and>. They are used to change the output direction of various prompts and output the prompt information to a specified place-various prompts are output to the screen by default. Example: tree/?> Help.txt: This command redirects the help information of the Tree Command to the help.txt file. Help> NUL redirects the prompt information of the help command to a null device (NUL indicates an empty device ).
Want to see what basic commands are available in cmd? In the CMD window, enter help. To save the basic command information, use help> D:/list.txt. Then, open the list.txt file in the ddisk root directory.
& Gt; and & gt; both serve as redirection prompts, but their functions are slightly different.A single ">" indicates that the redirection prompt information is overwritten. That is to say, if the destination already has content, the original content will be cleared and filled with new content.> indicates the redirection prompt information in append mode. That is to say, if the destination has content, the original content will remain unchanged and new content will be appended after the original content.For example, assume that the content in D:/test.txt is I love batch. Then, in the CMD window, use the following two statements: Echo Me, Too> D:/test.txt and echo Me, Too> D:/test.txt. After the first sentence is used, test.txt contains only one line of content: me,too, and after using the second sentence, test.txt will have two lines of content, namely
Love batch, me, too.