Computing.net: Question & Answers Forum Latest Questions

computing
  • 13
  • 13

Please find below my code to split the file : @Echo off SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION Set /a xxFileNo=1 Set /a xxRecLimit=25 Set /a xxRecCount=0 Set /a cnt=0 Set “xxOutFile=D:\MyTextFileName_!xxFileNo!.txt” Set “xxInFile=D:\MyTextFileName.txt” for /f “tokens=* delims=^|” %%1 in (!xxInFile!) Do ( Echo %%1>>!xxOutFile! Set /a xxRecCount+=1