title: How to get all Filenames on Directory in VB.NET
body: <p>I want to show all PDF filenames that has "33" in any position. </p>
  
  <p>sample pdf list on PDFFiles Folder</p>
  
  <pre><code>1111.pdf
  3311.pdf
  2222.pdf
  2331.pdf
  1234.pdf
  1233.pdf
  </code></pre>
  
  <p>I need to get result like this,that is something <strong>like</strong> wildcard <strong>%33%</strong> on sql</p>
  
  <pre><code>3311.pdf
  2331.pdf
  1233.pdf
  </code></pre>
  
  <p>I tried this one </p>
  
  <pre><code>Me.ListBox1.Items.AddRange(Directory.GetFiles("C:\PDFFiles", "*33*" &amp; ".PDF", SearchOption.AllDirectories))
  </code></pre>
  
  <p>but it still displays all the pdf files.</p>
  
  <pre><code>1111.pdf
  3311.pdf
  2222.pdf
  2331.pdf
  1234.pdf
  1233.pdf
  </code></pre>
  
  <p>and this </p>
  
  <pre><code>Me.ListBox1.Items.AddRange(Directory.GetFiles("C:\PDFFiles", "*33" &amp; ".PDF", SearchOption.AllDirectories))
  </code></pre>
  
  <p>but it only get </p>
  
  <pre><code>1233.pdf //this get all filename that ends with 33
  </code></pre>
  
  <p>Thanks in Regards</p>