delete last character from text file

October 7, 2010 at 14:52:12
Specs: Windows XP
i have a bunch of text files with last character  in a folder. instead of opening every txt file and manually delete that last character, i was thinking writing a dos batch file to remove it. thanks in advanced.

See More: delete last character from text file

Report •

#1
October 7, 2010 at 15:10:14
Thanks to IVO for this one:
====================================

copy /A YourFile YourFile.new /B > nul
del YourFile
ren YourFile.new YourFile


=====================================
Helping others achieve escape felicity

M2


Report •

#2
October 7, 2010 at 15:15:53
THANKS VERY MUCH. APPRECIATED

Report •
Related Solutions


Ask Question