I'm New to Batch script and i'm trying to remove the last blank line from .dat file but i'm not succeed and i tried many steps but no luck. please help me to achieve this ..
below are the commands i tried:
findstr . Efor_17112016.dat> Eform1_17112016.dat
(for /f "delims=" %%a in ('type "Efor_17112016.dat"') do echo %%a)>"Efor1_17112016.dat"
findstr.exe /r "." <Efor_17112016.dat> Efor1_17112016.dat
findstr /V /R /B /E /C:" *" "Efor_17112016.dat">"E:\Staging\LandingArea\Efor1_17112016.dat"