Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!nosc!ucsd!ucbvax!decwrl!pyramid!prls!philabs!micomvax!barry From: barry@micomvax.UUCP (Barry Kimelman) Newsgroups: comp.sys.ibm.pc Subject: Need Help With Modifying Existing Volume Label Message-ID: <1170@micomvax.UUCP> Date: 6 Jul 88 12:52:47 GMT Reply-To: barry@micomva.UUCP (Barry Kimelman) Organization: Philips Electronics Ltd. (TDS - Montreal) St. Laurent QC, Canada Lines: 33 I would like to know how to modify an already existing volume label. I have tried the method stated in "ADVANCED MSDOS PROGRAMMING" by Ray Duncan with no success. The method is as follows: 1. Set the DTA to a 64-byte scratch buffer (my DTA buffer was larger than 64 bytes, actually it was 512) 2. Using an extended FCB, perform INT21h function 11h (Search for first match). If register AL is 0ffH then go add a new volume 3. If AL was returned as 00H, the DTA buffer now contains a simulated extended FCB with the volume name stored in bytes 08H through 12H. Move new volume name (11 characters) to DTA buffer + 19H 4. Passing address of DTA buffer in DS:DX , request INT21h function 17H (rename file). If AL is not returned as 00H then you have serious problems. I traced the action of my code using PFIXPLUS interactive debugger and it is setup exactly correct according to the above stated instructions from Ray Duncan's book. So the question remains: What am i not doing correctcly ?? I traced the actions of a utility called LABEL which i use from time to time and found it to be using RESERVED INT21h function calls !!!! Any help anyone out there can give me would be greatly appreciated. Please e-mail responses to me (if at all possible) to ...!philabs!micomvax!barry -- Barry Kimelman: ...!philabs!micomvax!barry phone: (514) 744-8200 Nothing is impossible if you do not have to do it yourself !! It is not enough that i succeed , everyone else must fail !!