FileGetNTFSMetadata

Top  Previous  Next

Prototype

 

strProperty:=FileGetNTFSMetadata(strFileName, intPropertyIndex)

 

Description

 

Get a metadata property from a file.

 

Parameters

 

strFileName: A string containing a valid path and filename.

intPropertyIndex: An integer value representing th property to read. Valid values are

 

2: TITLE

3: SUBJECT

4: AUTHOR

5: KEYWORDS

6: COMMENTS

7: TEMPLATE

8: LASTAUTHOR

9: REVNUMBER

10: EDITTIME

11: LASTPRINTED

12: CREATE_DTM

13: LASTSAVE_DTM

14: PAGECOUNT

15: WORDCOUNT

16: CHARCOUNT

17: THUMBNAIL

18: APPNAME

19: SECURITY

 

Returned value

 

strPropert: the string value of retrieved property.

 

Notes

 

You can get/set metadata only on NTFS filesystem.

 

Example

 

// Get the metadata "Title" from input file

Title:=FileGetNTFSMetadata(_CurrentInputFile,2)

 

// If the Title exists, uses this string as output file

if Length(Title)>0 then _CurrentOutputFile:=Title+'.tif';