title: Copy File with contains specific string in a file name vb.net
body: <p>I am trying to copy files which contain "GES" in the file name from a shared location and below is the code I wrote but for some reason its creating entire folder paths from where is being copied. How do I copy only the file instead of Entire folder path.</p>
  
  <pre><code>For Each foundFile As String In My.Computer.FileSystem.GetFiles(
  FileSource,
      Microsoft.VisualBasic.FileIO.SearchOption.SearchTopLevelOnly, "*GES*.ini")
  
      My.Computer.FileSystem.CopyFile(foundFile, destination &amp; foundFile)
  Next
  </code></pre>