Setting a variable from an entire txt file

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
julesverne
Posts: 81
Joined: 19 Nov 2013 00:41

Re: Setting a variable from an entire txt file

#16 Post by julesverne » 29 Nov 2013 21:25

Thanks foxidrive. That works, but just for this particular example. There can be a bazillion errors that can pop up, all with output that is different. In this particular example it's 5 lines, but it may be 3 or 1 or none or 10. I believe the only way to get past this issue is by giving the txt file line numbers. And I'm assuming some sort of set /a.

I was looking at this that dbenham came up with, but a little over my head at the moment. http://stackoverflow.com/questions/8795130/removing-textual-lines-from-top-or-that-include-specific-char-or-string-from-mul

Post Reply