title: How to get File Type of a file
body: <p>Is there a way to get the file type displayed in windows explorer in VB.net </p>
  
  <p>i.e in windows explorer in details view one can see for example</p>
  
  <pre>
  Name          Date Modified           Type                           Size
  A.PDF         05/06/2017 5:54PM       Adobe Acrobat reader           150kb
  B.DOCX        05/06/2017 5:00PM       Microsoft Word Document        100kb
  etc.
  </pre>
  
  <p>I want to get the type.  I cant seem to find a way to get there.  It feels like this should be very easy.</p>
  
  <pre><code>Dim infoReader As System.IO.FileInfo
  infoReader = My.Computer.FileSystem.GetFileInfo(txtFileName.Text)
  </code></pre>
  
  <p>FileInfo gets me modified data and size of the file.. but not the type.</p>
  
  <p>Appreciate forums help!  </p>
  
  <p>. I.e. for .pdf file the display with would "adobe acrobat document" .xls file would be "Microsoft excel worksheet"</p>