GetFileAttributes slow in startup RRS feed

  • General discussion

  • Hi,

    I am using GetFileAttributes function to check directory existance.

    But it takes around ~25 to ~30 ms to get the attributes of directory when program is executed first time after machine reboot.

    Why the same does not takes similar time in next execution.

    Also I am not observing this behavior for all directories, only some directories takes more time than others.

    What parameter's should I check to differentiate this behavior.


    Tuesday, June 28, 2016 7:55 AM

All replies

  • Is GetFileAttributes a Small Basic command? I do not recognize it.

    Jan [ WhTurner ] The Netherlands

    Tuesday, June 28, 2016 10:04 AM
  • I guess this is maybe C++, and I also presume the OS caches this info so it it is faster on subsequeny calls, but you should try a forum for the approproate language you are using, assuming this is not a Small Basic extension.
    Tuesday, June 28, 2016 5:18 PM