.bat file script to delete last 5 lines

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

priyaram

Thread Starter
Joined
Jan 18, 2013
Messages
1
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....
 
Joined
Sep 4, 2003
Messages
4,912
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.

Rollin
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

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 807,865 other people just like you!

Latest posts

Members online

No members online now.
Top