I wrote a very simple batch file that directs the output to a file. Here's the text body:
DATE /T > FileTreeList.txt TIME /T >> FileTreeList.txt cd >> FileTreeList.txt tree /f /a >> FileTreeList.txt
When I run a batch file in a directory with many folders and files, the output file (FileTreeList.txt) is truncated to ~ 621 KB. If I run a batch file from command mode and direct output to a file, I get the same results. However, if I show the results on the screen, it will display all the results.
Why is this happening and how to fix it?
Jeffl source share