Remove End of line(Blank Box) from text file

May 27, 2011 at 09:13:03
Specs: Windows Server 2003, 40 GB
Hi Great experties,

I am new to batch files..Anyone can help me out here..

I have bunch of files in folder, each file contains end of line(blank box), I found from somewhere it's CTRL Z character. Can anyone post the script to remove this character from each text file and save same file on same folder or other folder?

Thanks in advance!!

See More: Remove End of line(Blank Box) from text file

Report •

May 27, 2011 at 18:08:29
Ctrl-Z is the end of file marker. Some text processors remove them automatically.

Report •

May 27, 2011 at 22:34:42
put this in the folder where all the files are present and run..let me know if works..

@echo off
md Output
for /f %%a in (dir /b *.txt) do (
echo processing %%a
type %%a >output\%%a

Subhash Chandra.

Report •

June 20, 2011 at 09:32:08
thanks Subhash,

But it's not working at all.

Report •
Related Solutions

Ask Question