Windows batch file split text file based on record count
I have a very large text file in with over a million records.
I want to be able to split the text file up into multiple smaller files based on a set number of records using a Windows batch file. For instance if the text file has 2.5 million records, I would like to split this up into 3 different output text files, with each file having no more than 1 million records. Any ideas on how to do this with a batch file? Thanks.