@Echo off
Set _File=ExportDiffFile.csv
Set /a _Lines=0
For /f %%j in ('Find "" /v /c ^< %_File%') Do Set /a _Lines=%%j
REM Echo %_File% has %_Lines% lines.
if "%_Lines%"=="1"(
Echo %_File% has no new lines.
Echo 100.
REM exit 100
)
else
(
Echo %_File% has %_Lines% new lines.
Echo adding into the server.
REM exit 0
)
@Echo off
Set _File=ExportDiffFile.csv
Set /a _Lines=0
For /f %%j in ('Find "" /v /c ^< %_File%') Do Set /a _Lines=%%j
Echo %_File% has %_Lines% lines.
IF "%_Lines%" EQU "1" (
Echo %_File% has no new lines.
Echo 100.
REM exit 100
) ELSE (
Echo %_File% has %_Lines% new lines.
Echo adding into the server.
REM exit 0
)