Batch file to Copy some lines from one text file to another text file
<p>I write batch file, and I have a problem:</p>

<p>I want that to write all lines from the current date until the end of the file </p>

<p><strong>example of text file :</strong></p>

<pre><code>not copy this line.
not copy this line.
not this line.
5/02/2016  10 20 30 45 05 56 70 (from here )
5/03/2016  10 20 30 45 05 56 70 
5/04/2016  10 20 30 45 05 56 70 
5/05/2016  10 20 30 45 05 56 70
</code></pre>

<p><strong>My code:</strong> </p>

<pre><code>@ECHO OFF
set filename=abc.txt
set filename2=outFile.txt
set find=find.txt
set sourceFolder=c:\1\
IF EXIST "%find%" DEL "%find%"
IF EXIST "%filename2%" DEL "%filename2%"
IF EXIST "SAMPLE_text01.txt" DEL "SAMPLE_text01.txt"
set currentdate=%date%
set newdate=%currentdate:~5,11%
echo %newdate% &gt;&gt; %sourceFolder%%find%

findstr /g:%sourceFolder%%find% %sourceFolder%%filename% &gt; %sourceFolder%%filename2%

set count=0

for /f "tokens=*" %%i in ('findstr /g:%sourceFolder%%find% 
"%sourceFolder%%filename%"') do (

    rem echo count is %count%
    set /a count+=1
    echo.%* &gt;&gt; temp.txt
)

pause
</code></pre>