Re: OT - Vista Search and Recursive GetFiles



"Lloyd Sheen" <a@xxx> wrote in message news:OjjDYQGMIHA.1204@xxxxxxxxxxxxxxxxxxxxxxx
For all those who don't think that a recursive search of files in folders is a good thing in the Microsoft.VisualBasic.FileIO.FileSystem namespace listen to this.

I am reorg my mp3 collection. I have written my own catalog program and it has xml files to cache info from tags etc. To ensure that the process goes ok I went to delete all the xml files to force a rescan of the tags. This should be simple ..... but this is Vista.

So I use search and get a list of the xml files. I shift-delete to get rid of them. I go to one of the folders to check on t he delete. All looks ok. I search again and .... the same number of files is presented. I shake my head and what is happening. Ok lets try the delete again. Guess what, the files don't exist. I kinda knew that but....

Ok after all is done, and I am checking on the files again. I redo the search. Now I see about twice as many xml files as I expect. Confusion reigns.

Sort them and low and behold there are duplicates for many of the files. Since I had changed the folder structure not all were duplicated just the ones where folders were left the same. More confusion. I check the folders and of course there is only one file with the file name (good old DOS). Go to CMD window and check with an old DOS command. The file totals are correct.

Phone MS support. Explain my problem. Oh it is the search indexer. I asked if a search which is correct would contain files that were not there or duplicates and of course the answer is yes. That would be an MS yes.

Wrote a simple vb prog to do the search and of course it reflects reality.

Just saw the new Apple commercial about Vista. Boy do they have it right.

Why I "upgraded" I ask myself just about every day.

thanks for listening
now back to the development

Lloyd Sheen

I've seen this same behavior in XP Pro. You would think the delete calls in the API would also notify the index manager to remove the file from the indexes.

Mike.


.



Relevant Pages

  • Re: OT - Vista Search and Recursive GetFiles
    ... To ensure that the process goes ok I went to delete all the xml files to force a rescan of the tags. ... Since I had changed the folder structure not all were duplicated just the ones where folders were left the same. ... Phone MS support. ... I asked if a search which is correct would contain files that were not there or duplicates and of course the answer is yes. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: OT - Vista Search and Recursive GetFiles
    ... To ensure that the process goes ok I went to delete all the xml files to force a rescan of the tags. ... Since I had changed the folder structure not all were duplicated just the ones where folders were left the same. ... Oh it is the search indexer. ... I asked if a search which is correct would contain files that were not there or duplicates and of course the answer is yes. ...
    (microsoft.public.dotnet.languages.vb)
  • Backed up your files?
    ... I am reorg my mp3 collection. ... goes ok I went to delete all the xml files to force a rescan of the tags. ... I go to one of the folders to check on t he delete. ... Sort them and low and behold there are duplicates for many of the files. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: OT - Vista Search and Recursive GetFiles
    ... To ensure that the process goes ok I went to delete all the xml files to force a rescan of the tags. ... Since I had changed the folder structure not all were duplicated just the ones where folders were left the same. ... Go to CMD window and check with an old DOS command. ... I asked if a search which is correct would contain files that were not there or duplicates and of course the answer is yes. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Consolidating? files
    ... files spread across several folders and subfolders in my home ... with no duplicates and no overwriting files that have the same name. ... Now tempfile2 will all the files with the same name clustere. ...
    (linux.redhat)