Let me preface, I've only been in software packaging a couple years and that has been the breadth of my cmd experience.
This little bit is almost just an exercise for me so I can engage in a larger project soon after. I can't set an environmental variable to a line of a txt... depicted below. I was hoping to grab the contents of the second line of data from a file retrieved from a wmic query.
for /f "delims=" %a in (file.txt) do set var=%a
Was my reference> Batch command to pull variables from a text file
What small stupid thing am I missing? My hope was %var% to be set to "cmd" if not "cmd "