There is some need to make logging of the program, but I would not like to lose the ability to display data on the console screen.
Team:
dir > List.txt
will write the directories and files of the current directory to the specified file. It would be desirable, that the data also was still displayed in the console. There is an opportunity for sure such, for example:
dir > list.txt 2>&1
but I can’t figure out how to write one stream on both the screen and the file.