We have a program that generates a text file that can range from 3mb to 30 mb. I am trying to figure out how to split the file by size - the max size of the text files is 4mb - so a text file that was originally 14 mb would need to be split into 4 text files.
The file name would need "_1", "_2", "_3" etc. appended to it.. so, if we had a 14mb file named "filename.txt"
the resulting text files would be
Is there a batch file that can accomplish this?