title: Windows batch - Print last column
body: <p>In Unix I use this to print the last column of a delimited string:</p>
  
  <pre><code>echo "a,b,c,d" | awk -F, '{print $NF}'
  </code></pre>
  
  <p>I have a command that will output a comma delimited string but won't always have the same number of columns.  The command is executed within a loop and each iteration could give a different number of columns.  What can I use to print the last column of this variable-column output?</p>