| 1. |
Solve : DOS for loop question? |
|
Answer» I am tryng to use for /f command to read in the file and returning a first line. Is there anyone who KNOWS if I can tell for /f command to give me the first line in the txt file?after echoing the line, exit.if you don't want to exit, you can jump to a label. If you want only the first line, use this That takes my vote for BEST suggestion. No need for a FOR loop, and all in one line. Yes, Graham's solution is simple and robust. I like it.I works like a charm. thank you all. Robtem |
|