title: VB.net txt text file merge / concatenate all files
body: <p>I have combined all logfiles by using the following code and shelling to dos. </p>
  
  <pre><code>    pi2.Arguments = "/c for /r c:\logs " + "%F in (*.*) do @type " + """%F """ + "&gt;&gt;c:\logs\Master"
      pi2.FileName = "cmd.exe"
      p2.StartInfo = pi2
      p2.Start()
      p2.WaitForExit()
  </code></pre>
  
  <p>This put all the information in one file but for some reason changes the format.  If i do a simple copy <em>.</em> *.txt in dos it merges them all and its readable but when i do the above code it changes the format.  Any ideas?</p>