Date: Thu, 13 Jul 2000 09:34:41 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: sami3079 AT my-deja DOT com cc: djgpp AT delorie DOT com Subject: Re: Changing directory's timestamp In-Reply-To: <8kivn9$b2n$1@nnrp1.deja.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 12 Jul 2000 sami3079 AT my-deja DOT com wrote: > I still have one problem, how to change directory's modification > (and maybe access) timestamp You can't, sorry. For some reason which evades me, DOS and Windows don't let programs access directories with most of the functions allowed with files. The directory's time stamp is determined when it is created, and never changes after that, no matter what you do. The modification time doesn't change either, even if you add/remove files to the directory (which clearly involves modifications to directory file's contents). The only possible way of working around that is to access the disk at the sector (BIOS) level, but I doubt if the application you have in mind really justifies such drastic measures. Direct disk accesses are both slow (because there's no easy way of finding the right cluster except to trace the entire path starting from root) and complicated (e.g., on Windows, you need to lock the volume before you can write to a sector, which is a very slow operation).