Recent

Author Topic: Complete file atributes list?  (Read 3170 times)

pusuni

  • Jr. Member
  • **
  • Posts: 72
Complete file atributes list?
« on: August 31, 2015, 12:42:44 pm »
I'm working with  files and their attributes (FileGetAttr function), but I'm finding some numbers, examples,

 (directory)   - (atributes Value - decimal)
ProgramData                   8210
Recovery                         8214
Archivos de programa     9238
Documents and Settings 9238

that do not match the available informancion here:
http://lazarus-ccr.sourceforge.net/docs/rtl/dos/fileattributes.html

Possible file attributes Constant    Description    Value (hex-dec)
readonly                               Read-Only file attribute    $01     -1
hidden                                 Hidden file attribute    $02     -2
sysfile                                 System file attribute    $04    -4
volumeid                              Volumd ID file attribute    $08    -8
directory                                 Directory file attribute    $10   -16
archive                                 Archive file attribute    $20  -32
anyfile                                 Match any file attribute    $3F  - 63

Where  can I get a complete list for different attributes values for Windows?

Thanks in advanced

derek.john.evans

  • Guest
Re: Complete file atributes list?
« Reply #1 on: August 31, 2015, 03:20:14 pm »
On Windows, SysUtils.FileGetAttr() maps to Windows.GetFileAttributes().
https://msdn.microsoft.com/en-us/library/windows/desktop/aa364944%28v=vs.85%29.aspx

File attributes are here:
https://msdn.microsoft.com/en-us/library/windows/desktop/gg258117%28v=vs.85%29.aspx

Which are therefore defined in the unit Windows.

pusuni

  • Jr. Member
  • **
  • Posts: 72
Re: Complete file atributes list?
« Reply #2 on: August 31, 2015, 04:57:49 pm »
Hi derek.john.evans!

Thanks a lot for the information

 

TinyPortal © 2005-2018