title: I need to get a list of folders in one line
body: <p>I have this line (simple one I know):</p>
  
  <pre><code>FOR /f "delims=" %%G in (List.txt) DO ECHO %%G
  </code></pre>
  
  <p>and the result is:</p>
  
  <pre><code>AAA
  BBB
  CCC
  DDD
  </code></pre>
  
  <p>(like it should)
  but I need the this output:
  <code>**AAA|BBB|CCC|DDD**</code></p>
  
  <p>can anyone help with such a thing?</p>