title: VB script + read files (only files with "log" name) and copy content files into one file.txt
body: <p>I have the following different files under C:\logs3</p>
  
  <pre><code>log1.txt
  log2.txt
  log3.txt
  </code></pre>
  
  <p>how to create with VB script , relevant code that create one file called:</p>
  
  <pre><code>log.general.txt 
  </code></pre>
  
  <p>this VB script need to read all files content under log3 directory that have the name - log</p>
  
  <pre><code>as:  log1.txt  log2.test.txt log3.start.txt  mylog.txt  big.log.txt
  
  But: not read the files as: test.txt  or ABBA.txt or CAR.txt
  </code></pre>
  
  <p>And copy the content of those files in to one file - log.general.txt - "also under log3 dir"</p>
  
  <p><em>*</em> remark in case the file is empty then need to escape (continue to the next files)</p>
  
  <p>for example</p>
  
  <pre><code>log1.txt:
  
  111111
  222222
  
  log2.txt:
  
  333333
  444444
  
  
  log3.txt
  
  555555
  666666
  
  file.test.txt
  
  777777
  888888
  
  
   log.general.txt content: -&gt; (Expected results from the VB script)
  
   111111
   222222
   333333
   444444
   555555
   666666
  </code></pre>
  
  <hr>
  
  <p>other example from linux: (to in order to explain my question)</p>
  
  <pre><code>cat log1.txt &gt;&gt; log.general.txt  
  cat log2.txt &gt;&gt; log.general.txt
  cat log3.txt &gt;&gt; log.general.txt 
  </code></pre>