You need to specify what is displayed in DOS. There are hundreds of commands in DOS, and each command may display information. Take dir as an example.
Suppose you run the dir command. The dir will list all file and directory information in the current directory. Now you want to save the listed information to a text file. Then you can use the following command:
dir > list.txt
The > sign in this command will redirect the display content of dir to the list.txt file. This is called input/output redirection in DOS. There is also a | line representing pipeline operation, which means to use the output of one command as the input of another command. For example:
echo y | del *.*
This command uses the y output by echo as the input of the del *.* command, and the del *.* does not need to wait for you to enter y to continue the deletion operation. If you are interested, you can check the redirection (> , >

and pipeline operation (|) under DOS.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“
这个帖子”和“
这个帖子”并努力遵守,如果可能,请告诉更多的人!