Re: Fast Size Folder



"Lorin" <Lorin@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:59D4BDD6-2BF4-4BF0-92A7-4EC271F61027@xxxxxxxxxxxxxxxx

Very interesting...It seems that the code you rode
also caches in the os. The first time I run on a large
folder I get 150 secs, the next time I get 1.97 secs.
Splain that.

Yes, I know. In fact that's what I said when I posted the code. It behaves in that way for exactly the same reason that the OS itself behaves in that way, probably because of normal disk caching but also possibly to do with extra caching that the OS might be performing. I'm fairly sure that the OS checks the total folder size in pretty much the same way as the VB code is doing, and probably using the very same API routines.

Mike


.



Relevant Pages

  • RE: "Basic File Search"
    ... this part of the fde gets the folder name FOLDER ... Set oFolderItem = objFolder.Items.Item ... all files with these criteria ... When Dir is used the first time you include the criteria for the search and ...
    (microsoft.public.excel.misc)
  • Re: Word 6.0 documents in Word 2004
    ... :-) This is the first time I have heard of your ... Tell her to create a new folder: Word2004 Copies, ... I would also be interested to check what her "Default" save format is. ... and we reaffirm the wish to overwrite. ...
    (microsoft.public.mac.office.word)
  • Re: "Basic File Search"
    ... "Joel" wrote: ... this part of the fde gets the folder name FOLDER ... all files with these criteria ... When Dir is used the first time you include the criteria for the search and ...
    (microsoft.public.excel.misc)
  • RE: "Basic File Search"
    ... that four workbook will be opened. ... this part of the fde gets the folder name FOLDER ... When Dir is used the first time you include the criteria for the search and ... have lots of code that does File Searches without the File Search function. ...
    (microsoft.public.excel.misc)
  • Re: Delphi seems to have gone nuts...
    ... one I'm editing and one which is being compiled. ... and ALL of my working source code is in that folder. ... > compiler is always just using the existing DCU file, ... Not the first time. ...
    (alt.comp.lang.borland-delphi)

Loading