I got some results.
First, what didn't work: while Steps 4 to 6 appeared to be creating some
files in c:\testfolder, none of them showed up nor could the search companion
find them.
On steps 1 to 3, I found three (out of 8) subfolders all having the same
slow symptoms. What was common to all three, but not the others, was the
presence of shortcuts. First, let me describe the folder structure and what
I'm trying to accomplish with this structure:
Each problem subfolder, which we will call subfolder1, etc. have several
sub-sub folders, which we will call 2005, 2006, 2007 and SC. The 2005, etc.
folders, contain scanned documents, where the start of the document names are
the document's dates (ymd) followed by their serial number. In the SC
folder, the short cut names are the document's serial number followed the
document's date. (Before suggesting sorting using the other directory
parameters, please be advised that usual windows file info dates, such as the
date created, the date last modified, etc. are useless for this kind of
sorting purpose since they are paper documents received from others that need
to be sorted both by serial number and by the date of the document, not the
date it was scanned.) I need the shortcuts since I sometimes want to leave
notes on the document, having to manage two copies to make sure both have the
same note, etc. is too prone to error. Before using them, I had a hard time
finding the file I wanted.
The smallest of the three problem folders had only 116 files, of which 21
were shortcuts, 6 subfolders, and occupies 9.30 Mb of disk space. I'm
probably as surprised as you are on how little this is, but it is definitely
very slow to respond. On the plus side, it is at least a reasonable size to
use to investigate this behavior. The folder with the most files and
shortcuts contains 2,380 of them.
If I take away the subfolder with the shortcuts, the response time improves
considerably. Why? That doesn't make any sense! What can be done to get
rid of this bad performance?