How to read a specified line in a txt file batch Ask Question. Asked 6 years, 4 months ago. Active 5 months ago. Viewed 1k times. How would I accomplish this?
Which specific line? Line ? Or a line containing a specific word? And yes, a log certainly would. Further - more seems to be incredibly slow with long files presumably because this was never its intended use. Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. I am trying to read the last line from a command prompt as I have another program running which will play a game and in the end echo if I am the winner, loser or we went to a draw.
I have this sample code:. Edit: the section "" isjust an example of what I am trying to achieve. Basically I want to read the line saying e. Also getting rid of the overhead of everywhere and using the age old echo off. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Bat script read output of command prompt Ask Question. Asked 2 days ago. Active 2 days ago. Sometimes it helps to test the idea before posting, We all post with brain suspended at times.
That is OK if intended as a serious post. Hi there, I came across this problem whilst trying to make a save game file for a game i'm writing in CMD. This should fix all your needs! Don't forget to make a file on your desktop that is named the same :: as the anyname. With text in it! Office Office Exchange Server. Not an IT pro? Resources for IT Professionals. Sign in. United States English.
0コメント