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 the redirection prompt information in The overwrite mode. That is, 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: after using the second sentence, test.txt will have two contents: I Love batch, me, and too.