Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watcgl.UUCP Path: utzoo!watmath!watnot!watcgl!jchapman From: jchapman@watcgl.UUCP (john chapman) Newsgroups: net.micro.pc Subject: MS-DOS CHATTR function Message-ID: <2099@watcgl.UUCP> Date: Tue, 25-Jun-85 09:11:40 EDT Article-I.D.: watcgl.2099 Posted: Tue Jun 25 09:11:40 1985 Date-Received: Wed, 26-Jun-85 05:30:30 EDT Distribution: net Organization: U of Waterloo, Ontario Lines: 24 I was trying to use the MS-DOS get/set file attributes last night and ran into a problem. Get works fine (at least it returns reasonable values for the files I was looking at) but Set returns an error code (2) that is not in my documentation. The only codes in my doc. are: 1 - AL has the wrong function (0=get, 1=set, anything else=error) 3 - bad path (file does not exist) 5 - invalid attributes in CX, either a non-existent attribute or one which cannot be changed (e.g. vol. label) I can get each of the above error codes by using an incorrect/illegal parameter appropriately so all the paramter error checking is taking place as described in the manual which to me also means that when I get a return code of 2 back it is not objecting to any of the things error codes 1,3,5 are used for; everything I pass seems ok but no action is taken other than to return 2. Is get/set not completely implemented (I'm running generic 2.0 btw)? I'd appreciate any suggestions. Thanks in advance, John Chapman ...!watmath!watcgl!jchapman