Is there a way to save the Help information displayed in the Command line window?
The answer is yes, and there is more than one answer.
A slightly more cumbersome approach is to copy the information from the Command Line window and paste it into the text to save it. This operation is more cumbersome: Right click on the command Line window, then select "Tag", with the mouse to pull out the copy range, and then hit enter, and finally, paste into the text.
The efficient approach is to redirect the information originally exported to the cmd window to the text file using the redirect symbol.
The redirection symbol has two:> and >>. Their role is to change the direction of the various prompts, the message output to the specified place to go--the various hint information by default is output to the screen. For example: Tree/?>help.txt, this command statement redirects the help information for the tree command to the Help.txt file, and Help>nul redirects the hint to the aid command to an empty device (nul indicates an empty device).
Want to see what basic commands are in CMD? You can see it in the cmd window, and if you want to save the basic command information, use Help>d:\list.txt, and then go to the D-Packing directory to find the List.txt file open.
Although both > and >> play a role in redirecting information, they have a slightly different effect. A single > representation redirects the message by overwriting, that is, if the destination originally had content, it would remove the original content and fill;>> with the new content to redirect the message in an additional way, that is, if the destination originally had content, the original content would remain unchanged, Append new content after the original content. For example: Suppose the content in D:\test.txt is: I love batch. Then, in the cmd window, use the following two statements, respectively: Echo Me,too>d:\test.txt and Echo me,too>>d:\ Test.txt, you'll find that after using the first statement, there is only one line in Test.txt: Me,too, and after using the second statement, Test.txt will have two items, namely I love batch and Me,too.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.