computing
  • 1

Delete Last Character From Text File

  • 1

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.

Share

1 Answer

  1. 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

    • 0