computing
  • 14

Solved Delete Last Line Of a .Txt File By Using Batch

  • 14

i want to delete the last line of a .txt file if it is blank.i don’t want to wright the result in a new file.

Is it possible by using a Batch File.

Share

1 Answer

  1. Unfortunately no, batch scripts cannot amend a file in situ, the result must be written to a new file.

    Please come back & tell us if your problem is resolved.

    • 0