title: Check If A Portion Of A Filename Exists
body: <p>So I know in the following code example, it checks to see if a file exists (full filename)...</p>
  
  <pre><code>If My.Computer.FileSystem.FileExists("C:\Temp\Test.cfg") Then
     MsgBox("File found.")
  Else
     MsgBox("File not found.")
  End If
  </code></pre>
  
  <p>...But what about if part of the a file exists? There is no standard naming convention to the files but they will always have a .cfg extention.</p>
  
  <p>So I want to check if C:\Temp contains a *.cfg file and if it exists, do something, else do something else.</p>