title: how to get specific file names using c#
body: <p>I have  10 zip files in a folder having path like this </p>
  
  <blockquote>
    <p>TargetDirectory =  "C:\docs\folder\"</p>
  </blockquote>
  
  <p>some of the  zip files names are like this </p>
  
  <pre><code>abc-19870908.Zip 
  abc-19870908.zip
  abc-12345678.zip
  </code></pre>
  
  <p>and some are like this...</p>
  
  <pre><code>doc.zip
  doc123.zip  
  ..
  </code></pre>
  
  <p>I am getting all file names by using following code...</p>
  
  <pre><code>string [] fileEntries = Directory.GetFiles(targetDirectory); 
  foreach(string fileName in fileEntries)
  {
    // here I need to compare , 
    // I mean I want to get only these files which are having 
    // these type of  filenames `abc-19870908.Zip`
  
    if (filename == "")
    {
  
         // I want to do something
     }
  }
  </code></pre>
  
  <p>What i have to put in the double quotes  in this line <code>if(filename == "")</code> to get like <code>abc-19870908.Zip</code> these filenames.</p>
  
  <p>Would any one please suggest any idea about this?</p>
  
  <p>Many thanks...</p>