1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

.bat file script to delete last 5 lines

Discussion in 'Software Development' started by priyaram, Jan 18, 2013.

Thread Status:
Not open for further replies.
  1. priyaram

    priyaram Thread Starter

    Jan 18, 2013
    i am having a .tsv file about 1024 KB and the line count is not same in all the .tsv files.
    every file has last 5 lines that needs to be deleted. is there a script or .bat file script that will do this....
  2. Rollin_Again


    Sep 4, 2003
    I'm not super familiar with TSV files but if they can be opened with Excel you can easily add a few lines of macro code to delete the last 5 lines and then re-save. If they can't be opened Excel you can try to use VBS script to open the file and modify it. If you can you post a sample file I can try to code it for you.

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1085850

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice