Solved Command or Bact Script to ENTER at EOFile.

November 30, 2011 at 23:09:40
Specs: Windows 7
Hello,

I need to edit an existing file and put an ENTER after the last record. Basically I am looking to enter an end of file for last record for my further processing of the file. How do I achieve this??

Required in WIndows Batch script or command line


See More: Command or Bact Script to ENTER at EOFile.

Report •


#1
December 1, 2011 at 01:38:05
✔ Best Answer
If you need to append a CR/LF (0Dh/0Ah) then

echo.>> Your_File

Instead to append an EOF (1Ah)

copy Your_File + nul New_File
del Your_File
ren New_File Your_File


Report •

#2
December 1, 2011 at 03:28:53
Thanks a lot...!!

echo.>> Your_File

works perfect for me.


Report •

Related Solutions


Ask Question