@EAREAD[filename, EAname]: Returns the specified extended attribute ( EAname) for a file or an empty string if the extended attribute does not exist. This function can only read EAs stored as text; it cannot read binary EAs. Wildcards cannot be used in the file name. For example, to read the .SUBJECT extended attribute for README.TXT:
set subject=%@earead[readme.txt,.subject]