call :data1 >file1.txt exit /b :data2 echo:Next line is empty echo: echo:Line 3 is here echo:Last line exit /b