:: NOLINE.BAT - A procedure to remove the CR/LF from the last line of a file. :: Tom Lavedas :: http:://www.pressroom.com/~tglbatch/ :: :: Syntax: NOLINE [InputFilename [OutputDevice_or_Filename]] :: :: @echo %dbgn% off >>%ram%.\{p} if [%1]==[] echo Input? if [%1]==[] %0 %ram%.\{p} CON E100''20''8 if [%2]==[] %0 %1 CON E100''20''8 > %ram%.\{t} if [%3]==[] %0 %1 %2 E100''D''A >>%ram%.\{t} for %%v in (%3 L102 N%2 W100 Q) do echo %%v < %ram%.\{t} if exist %1 debug %1 > nul del %ram%.\{?}