I am looking for the shortest amount of code possible that will get the first line of a text file and set it to a variable in Windows.
There are lots of examples of this kind of thing in other threads on this StackExchange site but I am not looking for how to loop through and display all lines in a file. What I want is to just simply get the first line.
Referenced from: http://forums.techguy.org/software-development/551867-batch-file-read-line-text.html
Ironically the poster is able to get the first line but wanted to loop through the whole file!