I am using below batch script to divide my large text file into multiple files based on the no of lines - @Echo OffSetlocal EnableExtensions DisableDelayedExpansionSet "inFile=%1%"Set "nLines=50000"If Not Exist "%inFile%" GoTo :EOFFor %%A In ("%inFil...