Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!philmtl!philabs!gotham!east!camilla!dbaum From: dbaum@camilla.East.Sun.COM (Derek Baum - Sun PC Distributed Systems) Newsgroups: comp.os.os2 Subject: Re: Extended Attribute questions Message-ID: <1760@east.East.Sun.COM> Date: 6 Apr 90 14:13:50 GMT References: Sender: news@east.East.Sun.COM Reply-To: dbaum@camilla.East.Sun.COM (Derek Baum - Sun PC Distributed Systems) Distribution: comp Organization: Sun Microsystems, Billerica MA Lines: 20 In article preece@urbana.mcd.mot.com (Scott E. Preece) writes: > >1. Which standard commands and utilities know about and preserve extended >attributes? All utilities supplied with OS|2 1.2 seem to preserve EAs, most importantly: COPY and XCOPY as well as the File Manager. If you need to copy a file to a system that does NOT preserve EAs, you can use EAUTIL to split or combine the EAs into a visible file. >2. The API seems to only allow you to pull out a list of specified >attributes; is there a way of retrieving the whole list, without >specifying the names in advance? If not, how would you duplicate a >file, preserving its attributes, without knowing in advance what >attributes it had? The family API function DosEnumAttribute enumerates all extended attributes for a specified file, however the DosCopy API provides a simpler method of duplicating a file (or sub-tree) and preserves extended attributes. Derek Baum consulting at: Sun Microsystems Internet: dbaum@East.Sun.COM (508)671-0456 UUCP: ...!sun!suneast!dbaum