title: Search file in Directory using partial name in C#
body: <p>I need to search file in directory using partial name.</p>
  
  <p>Ex: </p>
  
  <pre><code>Directory : c:\Path
  Filename  : Error_005296-895632-12563.xml
  Partial file name: 005296-895632-12563
  </code></pre>
  
  <p>I have tried below.</p>
  
  <pre><code>Directory.GetFiles("c:\Path", "*005296-895632-12563*.xml", SearchOption.AllDirectories). 
  </code></pre>
  
  <p>But it didn't work </p>
  
  <p>Sample file names are :</p>
  
  <pre><code>Error_005296-895632-12563.xml
  005296-895632-12563_Response.xml
  Duplicate_005296-895632-12563_Response.xml
  </code></pre>