title: How do I delete the 2nd to last line in a txt file using batch?
body: <p>I've searched this site MANY times and found MANY related questions but none were exactly like my question so... I merely need to delete the 2nd to last line in a txt file (%txtfile%.txt) and that's all. The reason it's the 2nd to last is because the file was made using <code>echo.Sample text&gt;&gt;"%txtfile%.txt"</code> and so it left an emty line at the end. I now want to delete the last line EXCEPT for the blank line. How do I do this?</p>