Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a size limit to batch output files?

I wrote a very simple Batch file that directs 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 the Batch File in a directory that has a lot of folders and files, the output file (FileTreeList.txt) truncates at ~621KB. If I run the Batch File from command mode and direct output to a file, I get the same results. However, if I let the results display on screen, it shows all the results.

Why does it happen and how to fix it?

like image 659
JeffL Avatar asked Nov 09 '22 06:11

JeffL


1 Answers

Probably your hard drive is full and only has a ~621KB of free space ;)

like image 199
Paul Avatar answered Jan 04 '23 03:01

Paul