Extended Attributes: Difference between revisions
Appearance
mNo edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
Implementation depends on underlying [[file systems]]. | Implementation depends on underlying [[file systems]]. | ||
==Functions== | |||
*[[DosOpen2]] for adding EAs to new or existing files | |||
*[[DosMkDir2]] for adding EAs to new directories | |||
*[[DosQFileInfo]], [[DosQPathInfo]] to read EAs | |||
*[[DosFindFirst]], [[DosFindNext]] to search for files with specific EAs | |||
==Standard Extended Attributes== | |||
{|class="wikitable" align=right | |||
|+Predefined file types | |||
| | |||
Assembler Code | |||
BASIC Code | |||
Binary Data | |||
Bitmap | |||
C Code | |||
COBOL Code | |||
DOS Command File | |||
Dynamic Link Library | |||
Executable | |||
FORTRAN Code | |||
Icon | |||
Library | |||
Metafile | |||
Pascal Code | |||
Plain Text | |||
Resource File | |||
|} | |||
;.TYPE:type of files (ASCII) | |||
;.KEYPHRASES:text key phrases (ASCII) | |||
;.SUBJECT:brief summary of content (ASCII single-value) | |||
;.COMMENTS:Notes (multi-value) | |||
;.HISTORY:file modification (ASCII) | |||
;.VERSION:version number (ASCII or binary) | |||
;.ICON:binary icon data | |||
;.ASSOCTABLE:association | |||
;.HPFSNAME:long name | |||
==Usage== | ==Usage== |
Revision as of 06:49, 27 January 2018
Extended Attributes (EA) are a property of directories as well as of files.
Implementation depends on underlying file systems.
Functions
- DosOpen2 for adding EAs to new or existing files
- DosMkDir2 for adding EAs to new directories
- DosQFileInfo, DosQPathInfo to read EAs
- DosFindFirst, DosFindNext to search for files with specific EAs
Standard Extended Attributes
Assembler Code BASIC Code Binary Data Bitmap C Code COBOL Code DOS Command File Dynamic Link Library Executable FORTRAN Code Icon Library Metafile Pascal Code Plain Text Resource File |
- .TYPE
- type of files (ASCII)
- .KEYPHRASES
- text key phrases (ASCII)
- .SUBJECT
- brief summary of content (ASCII single-value)
- .COMMENTS
- Notes (multi-value)
- .HISTORY
- file modification (ASCII)
- .VERSION
- version number (ASCII or binary)
- .ICON
- binary icon data
- .ASSOCTABLE
- association
- .HPFSNAME
- long name
Usage
- REXX interpreter
REXX.METACONTROL REXX.PROGRAMDATA
- System Editor
.TYPE
- Multimedia Presentation Manager/2
.MMPREF_MMAUDIO .MMPREF_MMIMAGE .POSTER
- Workplace Shell
.CLASSINFO .ICON .ICONPOS .LONGNAME .TYPE