Home All Groups Group Topic Archive Search About

OT - Vista Search and Recursive GetFiles

Author
26 Nov 2007 7:39 PM
Lloyd Sheen
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

Author
26 Nov 2007 9:09 PM
Stephany Young
And your point is?


Show quoteHide quote
"Lloyd Sheen" <a@b.c> wrote in message
news:OjjDYQGMIHA.1204@TK2MSFTNGP03.phx.gbl...
> 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
Are all your drivers up to date? click for free checkup

Author
26 Nov 2007 9:38 PM
Lloyd Sheen
Show quote Hide quote
"Stephany Young" <noone@localhost> wrote in message
news:OosYkCHMIHA.2432@TK2MSFTNGP04.phx.gbl...
> And your point is?
>
>
> "Lloyd Sheen" <a@b.c> wrote in message
> news:OjjDYQGMIHA.1204@TK2MSFTNGP03.phx.gbl...
>> 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
>

Not wanting to have a flame war but I will answer.

1.    Vista - personal preference - mine is thumbs down
2.    What is a search for?  To find existing items.  When it doesn't what
good is it.
3.    Support.  When support thinks that finding non-existant items is not a
problem with a search engine then what can I say?

LS
Author
28 Nov 2007 3:57 PM
C-Services Holland b.v.
Lloyd Sheen schreef:
>
> Not wanting to have a flame war but I will answer.
>
> 1.    Vista - personal preference - mine is thumbs down
> 2.    What is a search for?  To find existing items.  When it doesn't
> what good is it.
> 3.    Support.  When support thinks that finding non-existant items is
> not a problem with a search engine then what can I say?
>
> LS

Actually your point would be to disable the indexing service.

--
Rinze van Huizen
C-Services Holland b.v
Author
28 Nov 2007 4:39 PM
Lloyd Sheen
Show quote Hide quote
"C-Services Holland b.v." <cshNOSPAMPLEASE@csh4u.nl> wrote in message
news:67ednYll7Zb1EtDanZ2dnUVZ8sninZ2d@zeelandnet.nl...
> Lloyd Sheen schreef:
>>
>> Not wanting to have a flame war but I will answer.
>>
>> 1.    Vista - personal preference - mine is thumbs down
>> 2.    What is a search for?  To find existing items.  When it doesn't
>> what good is it.
>> 3.    Support.  When support thinks that finding non-existant items is
>> not a problem with a search engine then what can I say?
>>
>> LS
>
> Actually your point would be to disable the indexing service.
>
> --
> Rinze van Huizen
> C-Services Holland b.v

I have stopped the service, changed it to manual and it starts anyway.
Vista has no concept that the user of a system should have some say over
what happens.  MS Bob was a better implementation of something nobody wanted
than Vista.

LS
Author
29 Nov 2007 11:41 AM
Andrew Morton
Lloyd Sheen wrote:
> "C-Services Holland b.v." wrote in message
>> Actually your point would be to disable the indexing service.
>
> I have stopped the service, changed it to manual and it starts anyway.

Can't you set it to disabled? Manual only means it won't start until
something tries to use it, not necessarily the user; automatic means it
starts when the computer starts.

Andrew
Author
29 Nov 2007 4:27 PM
Lloyd Sheen
Show quote Hide quote
"Andrew Morton" <a**@in-press.co.uk.invalid> wrote in message
news:%23w9NPznMIHA.4136@TK2MSFTNGP03.phx.gbl...
> Lloyd Sheen wrote:
>> "C-Services Holland b.v." wrote in message
>>> Actually your point would be to disable the indexing service.
>>
>> I have stopped the service, changed it to manual and it starts anyway.
>
> Can't you set it to disabled? Manual only means it won't start until
> something tries to use it, not necessarily the user; automatic means it
> starts when the computer starts.
>
> Andrew
>

That did it.  The search dialog now says   "Your searches might be slow
....." and give ability to turn it on.  But I won't.

thanks
LS
Author
26 Nov 2007 9:37 PM
Bill Yanaire
Show quote Hide quote
"Lloyd Sheen" <a@b.c> wrote in message
news:OjjDYQGMIHA.1204@TK2MSFTNGP03.phx.gbl...
> 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

Back to development.  The big question is:  Have you backed up your
development files and your MP3 files?


Show quoteHide quote
>
Author
26 Nov 2007 10:11 PM
Lloyd Sheen
Show quote Hide quote
"Bill Yanaire" <b***@yanaire.com> wrote in message
news:e3dlYSHMIHA.1212@TK2MSFTNGP05.phx.gbl...
>
> "Lloyd Sheen" <a@b.c> wrote in message
> news:OjjDYQGMIHA.1204@TK2MSFTNGP03.phx.gbl...
>> 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
>
> Back to development.  The big question is:  Have you backed up your
> development files and your MP3 files?
>
>
>>
>
>

Yes, ever since the install of Vista which wiped my ITunes folder (and this
was at the instruction of MS Support telling me that the upgrade to Vista
Ultimate would not touch any non OS partition) I have a removable HD which I
use to back up.

LS
Author
26 Nov 2007 11:55 PM
Michael D. Ober
Show quote Hide quote
"Lloyd Sheen" <a@b.c> wrote in message
news:OjjDYQGMIHA.1204@TK2MSFTNGP03.phx.gbl...
> 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.
Author
27 Nov 2007 12:47 AM
Lloyd Sheen
Show quote Hide quote
"Michael D. Ober" <ober***@.alum.mit.edu.nospam> wrote in message
news:13kmn7tdu0ba0ae@corp.supernews.com...
> "Lloyd Sheen" <a@b.c> wrote in message
> news:OjjDYQGMIHA.1204@TK2MSFTNGP03.phx.gbl...
>> 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.
>
>

At the minimum check to see if the file exists before presenting it as a
"found".

LS

Bookmark and Share