Re: file properties with DIR function : Bug ?
- Posted by Robert Craig <rds at RapidEuphoria.com> Aug 22, 2006
- 555 views
chadal wrote: > Sorry about my mistake. I've effectively used the Overman's dir232.zip > library. > > It is nearly like the Pete'code. > > With Pete'code from its answer, do you obtain the same result on your machine > or like me, différences for second property ? > For some files, the différence is 1 second, and other, 2 seconds. I tried Pete's code and checked about a dozen files. They all showed the exact same time, including the seconds. I used Windows XP, Service Pack 2, File System: FAT32. I then tried my other, newer, XP machine. The file system there is not FAT32, but rather NTFS. On that machine I found files that differed by one or two seconds. In fact it seemed to be a fairly common occurrence. So I'm guesing that maybe NTFS is storing the seconds with more accuracy, but that accuracy is lost when a conversion is made so dir() can read the information using the old standard DOS format. The C code I'm using for dir() is almost identical between DOS (using Watcom library calls) and Windows (using the same Watcom library calls). For other C compilers I use different code. I don't have any immediate plans to "fix" this though. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com