title: Count columns int the file
body: <p>I need help. I have to count columns .txt using batch file. The columns are Delimited by "|"
  I'm trying this:</p>
  
  <pre><code>@echo off
  
  set file=C:\Users\Documents\test\days.txt
  
  for /F "delims==|" %%a in ('type "%file%" ^|find "" /v /c') do set contColumns=%%a    
  
  echo This file %file% have %contColumns% columns.
  
  PAUSE
  </code></pre>