For future readers...
It's part of the ExtractAttachedFiles command - just call it with the correct params: empty quotes for the first param, and the second parameter is an integer representing which type of files to list.
Code example:
_EAF1 = ExtractAttachedFile(``, 1) ;EXTENDER DLLs
_EAF2 = ExtractAttachedFile(``, 2) ;OTHER FILES
filePut(`c:\EAF_Extdrs.txt`, _EAF1)
filePut(`c:\EAF_Other.txt`, _EAF2)