System.FileExtension

Identifies the file extension of the file-based item, including the leading period. This property is derived from System.FileName. If System.FileName either does not have a file extension or is VT_EMPTY, the value for this property should be VT_EMPTY.

To obtain the type of any item (including an item that is not a file), use System.ItemType.

Windows 10, version 1703, Windows 10, version 1607, Windows 10, version 1511, Windows 10, version 1507, Windows 8.1, Windows 8, Windows 7, Windows Vista

propertyDescription
   name = System.FileExtension
   shellPKey = PKEY_FileExtension
   formatID = E4F10A3C-49E6-405D-8288-A23BD4EEAA6C
   propID = 100
   SearchInfo
      InInvertedIndex = true
      IsColumn = true
   typeInfo
      type = String
      IsInnate = true

Remarks

PKEY values are defined in Propkey.h.

If System.FileName is VT_EMPTY, this property should also be empty. Otherwise, this property should be derived appropriately by the data source from System.FileName. If System.FileName does not include a file extension, System.FileExtension should be VT_EMPTY. To obtain the type of any item (including an item that is not a file), use System.ItemType.

Path and file extension property examples.

Path File Extension
c:\files\personal\hello.txt .txt
\\server\share\mydir\news.doc .doc
\\server\share\numbers.xls .xls
\\server\share\folder VT_EMPTY
c:\Stuff\MyFolder VT_EMPTY
[desktop] VT_EMPTY

 

propertyDescription

searchInfo

labelInfo

typeInfo

displayInfo

stringFormat

booleanFormat

numberFormat

dateTimeFormat

enumeratedList

drawControl

editControl

filterControl

queryControl