title: Display Folder Contents of Specific Filetype in C# Listview
body: <p>I'm using Visual C# 2010 Express. What I'm trying to do is list all files within a, predefined, directory of a specific filetype. With each listing having a check box beside it. So that the same command can be, individually,  run on all marked files.</p>
  
  <p>I've used a cmd.exe batch script to do something similar in the past. But I don't know how to translate it into C#. For use with System.Windows.Forms.ListView. At least I think I want to use ListView. Nor am I aware as to how I would append a check box to the beginning of each filename listing.</p>
  
  <p>Batch example:</p>
  
  <pre><code>@echo off
  REM Path variable set for sake of example.
  set "path=c:\temp" 
  
  :fList REM File List Loop
  SETLOCAL EnableDelayedExpansion
  For /F "delims=" %%A In ( ' DIR /B /O:N /A:-D "%path%\*.ext" ' ) Do (
  echo %%A
  )
  goto :EOF
  </code></pre>
  
  <p>Thanks in advance for any help or suggested reading material.</p>