Excellent - many thanks.
I deleted all the files, but as they're log files they will soon build back up.
Today's times are much faster as it doesn't have to process all the 297 files. Yesterday it took 1.2 secs. Today adir() took .2 secs and directory() took .01 secs => 20 times faster!!!
>Jason,
>
>Off the top of my head I'd say it's the additional overhead of NT security.
>
>You can use the DIRECTORY() function to test see if a directory exists.
>
>>Could anyone explain why the following code runs in .1 sec on a Win98 machine and 1.2 secs on an NT 4 machine?
>>
>>lnStart = seconds()
>>lnDirOK = adir(laTemp, "\\charlton1\depts\general\MF Log\", "D") > 0
>>wait wind str( seconds() - lnStart, 6, 2 )
>>
>>All I wanted to do is check to make sure that the directory existed. Both machines are the same spec and sit next door to each other. All NT machines around the building that I have tested this on display a much longer response time than the 95 & 98 machines.
>>
>>For info - it's VFP5 and the directory has 297 files in it.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only