Windows Vista Forums
Vista Forums Home Join Vista Forums Webcasts Windows 7 Forum Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista file management

Keyword search does not work on all files

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 02-16-2007   #1 (permalink)
Bpfh
Guest


 

Keyword search does not work on all files

Just like XP (SP2), it seems that the Vista does not search for keywords in
"non registered" files.

I have the same problem as "auser" for searching within non-indexed files
(ie. put string "SEARCH" in file called file.dpe and the search system will
never look. Rename the file to file.txt, and lo, the file & string will be
found.

How do I get the keyword search to work properly? For me All files means
"All files" not "all files except a large bunch that we can't be bothered to
process"...

Cheers,
Daniel


My System SpecsSystem Spec
Old 02-16-2007   #2 (permalink)
Ronnie Vernon MVP
Guest


 

Re: Keyword search does not work on all files

Open Control Panel/Indexing Options/Advanced Button/File Types Tab. You can
select any or all of the file types there. If the file type you are looking
for is not listed, enter the files extension in the box at the bottom of
that dialog and click the Add New Extension button. Make sure that the
"Index Properties and File Contents" option is checked.

Select the Index Settings Tab and click the Rebuild Button.



--

Ronnie Vernon
Microsoft MVP
Windows Shell/User


"Bpfh" <daniel@danielpage.com> wrote in message
news:0F15A3CC-DACA-4BC7-B081-B35291DD674E@microsoft.com...
> Just like XP (SP2), it seems that the Vista does not search for keywords
> in
> "non registered" files.
>
> I have the same problem as "auser" for searching within non-indexed files
> (ie. put string "SEARCH" in file called file.dpe and the search system
> will
> never look. Rename the file to file.txt, and lo, the file & string will be
> found.
>
> How do I get the keyword search to work properly? For me All files means
> "All files" not "all files except a large bunch that we can't be bothered
> to
> process"...
>
> Cheers,
> Daniel
>


My System SpecsSystem Spec
Old 02-18-2007   #3 (permalink)
DisplayName
Guest


 

Re: Keyword search does not work on all files

What if I have 50,000 file types not currently searched? Add them ALL to the
index?

"Ronnie Vernon MVP" wrote:

> Open Control Panel/Indexing Options/Advanced Button/File Types Tab. You can
> select any or all of the file types there. If the file type you are looking
> for is not listed, enter the files extension in the box at the bottom of
> that dialog and click the Add New Extension button. Make sure that the
> "Index Properties and File Contents" option is checked.
>
> Select the Index Settings Tab and click the Rebuild Button.
>
>
>
> --
>
> Ronnie Vernon
> Microsoft MVP
> Windows Shell/User
>
>
> "Bpfh" <daniel@danielpage.com> wrote in message
> news:0F15A3CC-DACA-4BC7-B081-B35291DD674E@microsoft.com...
> > Just like XP (SP2), it seems that the Vista does not search for keywords
> > in
> > "non registered" files.
> >
> > I have the same problem as "auser" for searching within non-indexed files
> > (ie. put string "SEARCH" in file called file.dpe and the search system
> > will
> > never look. Rename the file to file.txt, and lo, the file & string will be
> > found.
> >
> > How do I get the keyword search to work properly? For me All files means
> > "All files" not "all files except a large bunch that we can't be bothered
> > to
> > process"...
> >
> > Cheers,
> > Daniel
> >

>

My System SpecsSystem Spec
Old 02-18-2007   #4 (permalink)
Ronnie Vernon MVP
Guest


 

Re: Keyword search does not work on all files

Yes, and let us know how long it takes to accomplish this.
You might also want to call Guinness and apply for the world record
for collecting this many file types.

--

Ronnie Vernon
Microsoft MVP
Windows Shell/User


"DisplayName" <DisplayName@discussions.microsoft.com> wrote in message
news:23CA0364-69BB-4DC2-844E-A97A944993FE@microsoft.com...
> What if I have 50,000 file types not currently searched? Add them ALL to
> the
> index?
>
> "Ronnie Vernon MVP" wrote:
>
>> Open Control Panel/Indexing Options/Advanced Button/File Types Tab. You
>> can
>> select any or all of the file types there. If the file type you are
>> looking
>> for is not listed, enter the files extension in the box at the bottom of
>> that dialog and click the Add New Extension button. Make sure that the
>> "Index Properties and File Contents" option is checked.
>>
>> Select the Index Settings Tab and click the Rebuild Button.
>>
>>
>>
>> --
>>
>> Ronnie Vernon
>> Microsoft MVP
>> Windows Shell/User
>>
>>
>> "Bpfh" <daniel@danielpage.com> wrote in message
>> news:0F15A3CC-DACA-4BC7-B081-B35291DD674E@microsoft.com...
>> > Just like XP (SP2), it seems that the Vista does not search for
>> > keywords
>> > in
>> > "non registered" files.
>> >
>> > I have the same problem as "auser" for searching within non-indexed
>> > files
>> > (ie. put string "SEARCH" in file called file.dpe and the search system
>> > will
>> > never look. Rename the file to file.txt, and lo, the file & string will
>> > be
>> > found.
>> >
>> > How do I get the keyword search to work properly? For me All files
>> > means
>> > "All files" not "all files except a large bunch that we can't be
>> > bothered
>> > to
>> > process"...
>> >
>> > Cheers,
>> > Daniel
>> >

>>


My System SpecsSystem Spec
Old 02-18-2007   #5 (permalink)
DisplayName
Guest


 

Re: Keyword search does not work on all files

This would only take about 2 minutes with a simple Perl script. I do
programming, and I work with many file types and generate many file types, so
I would prefer to have an option to search all files.

Anyway, I found a solution. Since I have an OpenBSD server here, I just copy
and paste ALL files from whatever directory I want to search over gigabit lan
to the OpenBSD machine, then I use "grep" to find what I want. Still millions
of times faster than adding them in one by one (which I tried for a few
minuts before giving up.)

"Ronnie Vernon MVP" wrote:

> Yes, and let us know how long it takes to accomplish this.
> You might also want to call Guinness and apply for the world record
> for collecting this many file types.
>
> --
>
> Ronnie Vernon
> Microsoft MVP
> Windows Shell/User
>
>
> "DisplayName" <DisplayName@discussions.microsoft.com> wrote in message
> news:23CA0364-69BB-4DC2-844E-A97A944993FE@microsoft.com...
> > What if I have 50,000 file types not currently searched? Add them ALL to
> > the
> > index?
> >
> > "Ronnie Vernon MVP" wrote:
> >
> >> Open Control Panel/Indexing Options/Advanced Button/File Types Tab. You
> >> can
> >> select any or all of the file types there. If the file type you are
> >> looking
> >> for is not listed, enter the files extension in the box at the bottom of
> >> that dialog and click the Add New Extension button. Make sure that the
> >> "Index Properties and File Contents" option is checked.
> >>
> >> Select the Index Settings Tab and click the Rebuild Button.
> >>
> >>
> >>
> >> --
> >>
> >> Ronnie Vernon
> >> Microsoft MVP
> >> Windows Shell/User
> >>
> >>
> >> "Bpfh" <daniel@danielpage.com> wrote in message
> >> news:0F15A3CC-DACA-4BC7-B081-B35291DD674E@microsoft.com...
> >> > Just like XP (SP2), it seems that the Vista does not search for
> >> > keywords
> >> > in
> >> > "non registered" files.
> >> >
> >> > I have the same problem as "auser" for searching within non-indexed
> >> > files
> >> > (ie. put string "SEARCH" in file called file.dpe and the search system
> >> > will
> >> > never look. Rename the file to file.txt, and lo, the file & string will
> >> > be
> >> > found.
> >> >
> >> > How do I get the keyword search to work properly? For me All files
> >> > means
> >> > "All files" not "all files except a large bunch that we can't be
> >> > bothered
> >> > to
> >> > process"...
> >> >
> >> > Cheers,
> >> > Daniel
> >> >
> >>

>

My System SpecsSystem Spec
Old 02-18-2007   #6 (permalink)
Ronnie Vernon MVP
Guest


 

Re: Keyword search does not work on all files

Glad you were able to resolve the problem.

--

Ronnie Vernon
Microsoft MVP
Windows Shell/User


"DisplayName" <DisplayName@discussions.microsoft.com> wrote in message
news:C15D9AA7-1DE3-4E57-9DAE-B0900BBA87E6@microsoft.com...
> This would only take about 2 minutes with a simple Perl script. I do
> programming, and I work with many file types and generate many file types,
> so
> I would prefer to have an option to search all files.
>
> Anyway, I found a solution. Since I have an OpenBSD server here, I just
> copy
> and paste ALL files from whatever directory I want to search over gigabit
> lan
> to the OpenBSD machine, then I use "grep" to find what I want. Still
> millions
> of times faster than adding them in one by one (which I tried for a few
> minuts before giving up.)
>
> "Ronnie Vernon MVP" wrote:
>
>> Yes, and let us know how long it takes to accomplish this.
>> You might also want to call Guinness and apply for the world record
>> for collecting this many file types.
>>
>> --
>>
>> Ronnie Vernon
>> Microsoft MVP
>> Windows Shell/User
>>
>>
>> "DisplayName" <DisplayName@discussions.microsoft.com> wrote in message
>> news:23CA0364-69BB-4DC2-844E-A97A944993FE@microsoft.com...
>> > What if I have 50,000 file types not currently searched? Add them ALL
>> > to
>> > the
>> > index?
>> >
>> > "Ronnie Vernon MVP" wrote:
>> >
>> >> Open Control Panel/Indexing Options/Advanced Button/File Types Tab.
>> >> You
>> >> can
>> >> select any or all of the file types there. If the file type you are
>> >> looking
>> >> for is not listed, enter the files extension in the box at the bottom
>> >> of
>> >> that dialog and click the Add New Extension button. Make sure that the
>> >> "Index Properties and File Contents" option is checked.
>> >>
>> >> Select the Index Settings Tab and click the Rebuild Button.
>> >>
>> >>
>> >>
>> >> --
>> >>
>> >> Ronnie Vernon
>> >> Microsoft MVP
>> >> Windows Shell/User
>> >>
>> >>
>> >> "Bpfh" <daniel@danielpage.com> wrote in message
>> >> news:0F15A3CC-DACA-4BC7-B081-B35291DD674E@microsoft.com...
>> >> > Just like XP (SP2), it seems that the Vista does not search for
>> >> > keywords
>> >> > in
>> >> > "non registered" files.
>> >> >
>> >> > I have the same problem as "auser" for searching within non-indexed
>> >> > files
>> >> > (ie. put string "SEARCH" in file called file.dpe and the search
>> >> > system
>> >> > will
>> >> > never look. Rename the file to file.txt, and lo, the file & string
>> >> > will
>> >> > be
>> >> > found.
>> >> >
>> >> > How do I get the keyword search to work properly? For me All files
>> >> > means
>> >> > "All files" not "all files except a large bunch that we can't be
>> >> > bothered
>> >> > to
>> >> > process"...
>> >> >
>> >> > Cheers,
>> >> > Daniel
>> >> >
>> >>

>>


My System SpecsSystem Spec
Old 02-19-2007   #7 (permalink)
Bpfh
Guest


 

Re: Keyword search does not work on all files

Holy What!!!! Is this the official solution? Can a real search tool (like the
XP search assistant) be installed?

I hate being second-guessed. I thought that "All files" meant "all files"
and not "all files that MS thinks you should search"... I'm not impressed...

OK, so imagine that I go through this rather than installing grep (horror of
horrors, having to install a Linux tool on Windows to get the job done... not
a good sign), I now have to go through the complete list and make sure that
the "index properties and contents" box is selected for all file extensions
and hope that these settings are used even if the indexer is not activated?

This seems seems a most user unfriendly way of doing things, and a massive
waste of time to boot

Cheers,
Daniel

"Ronnie Vernon MVP" wrote:

> Open Control Panel/Indexing Options/Advanced Button/File Types Tab. You can
> select any or all of the file types there. If the file type you are looking
> for is not listed, enter the files extension in the box at the bottom of
> that dialog and click the Add New Extension button. Make sure that the
> "Index Properties and File Contents" option is checked.
>
> Select the Index Settings Tab and click the Rebuild Button.
>
>
>
> --
>
> Ronnie Vernon
> Microsoft MVP
> Windows Shell/User
>
>
> "Bpfh" <daniel@danielpage.com> wrote in message
> news:0F15A3CC-DACA-4BC7-B081-B35291DD674E@microsoft.com...
> > Just like XP (SP2), it seems that the Vista does not search for keywords
> > in
> > "non registered" files.
> >
> > I have the same problem as "auser" for searching within non-indexed files
> > (ie. put string "SEARCH" in file called file.dpe and the search system
> > will
> > never look. Rename the file to file.txt, and lo, the file & string will be
> > found.
> >
> > How do I get the keyword search to work properly? For me All files means
> > "All files" not "all files except a large bunch that we can't be bothered
> > to
> > process"...
> >
> > Cheers,
> > Daniel
> >

>

My System SpecsSystem Spec
Old 02-19-2007   #8 (permalink)
DisplayName
Guest


 

Re: Keyword search does not work on all files

You can try http://www.wingrep.com/ (Windows Grep, which is very good), or
MS-DOS "findstr" that comes with Vista/XP (not very powerful), or some other
3rd party grep tool.

Or you can download Perl for windows and use the provided script (not very
powerful. just whipped it up in a few minutes and did some minor testing):
http://www.activestate.com/store/pro...5-08d58c2648ca

#---BEGIN SCRIPT-------------------------------------------------------------
# Usage: perl findtext.pl <regular expression (perl format)> <search path>
#
# Example (see http://www.comp.leeds.ac.uk/Perl/matching.html for regex info):
#
# perl findtext.pl "Administrator" C:\
#
# Output:
#
# <file>:<line number>:<single space><line where regex was found>

use strict;

# Searches for regex in given file.
sub FindString($ $)
{
my $regex = $_[0];
my $file = $_[1];

my $lineNumber = 1;
open(my $SRC, "<$file");
while(<$SRC>) {
if(/$regex/) {
if(/[\x00-\x08\x0B\x0C\x0E-\x1F\x80-\xFF]/) {
print "binary file \"$file\" matches\n";
return;
} else {
print "$file:$lineNumber: $_";
}
}
++$lineNumber;
}
}

# Searches for files in given path and goes into sub directories recursively.
sub Search($ $)
{
my $regex = $_[0];
my $path = $_[1];

$path =~ s/\\$//;
$path .= "\\";

my @files = split(/\n/, `dir /b \"$path\"`);

my @folders;
foreach my $file (@files) {
my $fullPath = $path . $file;
if(-d $fullPath) {
Search($regex, $fullPath);
} else {
FindString($regex, $fullPath);
}
}
}

# Main.
{
if(@ARGV != 2) {
print "usage: $0 <regular expression> <search path>\n" .
"\nExample (see http://www.comp.leeds.ac.uk/Perl/matching.html " .
"for regex info):\n" .
"\n\tperl findtext.pl \"Administrator\" \"C:\\Windows\"\n" .
"\nOutput:\n" .
"\n\t<file>:<line number>:<single space><line where regex was found>\n";
exit 1;
}

my $regex = $ARGV[0];
my $path = $ARGV[1];
Search($regex, $path);
}
#---END SCRIPT---------------------------------------------------------------

"Bpfh" wrote:

> Holy What!!!! Is this the official solution? Can a real search tool (like the
> XP search assistant) be installed?
>
> I hate being second-guessed. I thought that "All files" meant "all files"
> and not "all files that MS thinks you should search"... I'm not impressed...
>
> OK, so imagine that I go through this rather than installing grep (horror of
> horrors, having to install a Linux tool on Windows to get the job done... not
> a good sign), I now have to go through the complete list and make sure that
> the "index properties and contents" box is selected for all file extensions
> and hope that these settings are used even if the indexer is not activated?
>
> This seems seems a most user unfriendly way of doing things, and a massive
> waste of time to boot
>
> Cheers,
> Daniel
>
> "Ronnie Vernon MVP" wrote:
>
> > Open Control Panel/Indexing Options/Advanced Button/File Types Tab. You can
> > select any or all of the file types there. If the file type you are looking
> > for is not listed, enter the files extension in the box at the bottom of
> > that dialog and click the Add New Extension button. Make sure that the
> > "Index Properties and File Contents" option is checked.
> >
> > Select the Index Settings Tab and click the Rebuild Button.
> >
> >
> >
> > --
> >
> > Ronnie Vernon
> > Microsoft MVP
> > Windows Shell/User
> >
> >
> > "Bpfh" <daniel@danielpage.com> wrote in message
> > news:0F15A3CC-DACA-4BC7-B081-B35291DD674E@microsoft.com...
> > > Just like XP (SP2), it seems that the Vista does not search for keywords
> > > in
> > > "non registered" files.
> > >
> > > I have the same problem as "auser" for searching within non-indexed files
> > > (ie. put string "SEARCH" in file called file.dpe and the search system
> > > will
> > > never look. Rename the file to file.txt, and lo, the file & string will be
> > > found.
> > >
> > > How do I get the keyword search to work properly? For me All files means
> > > "All files" not "all files except a large bunch that we can't be bothered
> > > to
> > > process"...
> > >
> > > Cheers,
> > > Daniel
> > >

> >

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Number of files in search results using 'Advanced Search' SerenaK Vista file management 1 05-03-2008 07:33 PM
Search for files doesn't search mountpoints LAban24 Vista file management 0 02-22-2008 09:05 AM
Search a Directory with Keyword List dgold PowerShell 13 11-28-2007 10:01 AM
Still searching for way to get Vista search to work: Why doesn't FilterFilesWithUnknownExtensions registry key work in Vista? Celegans Vista General 11 08-31-2007 09:04 AM
Keyword Management kgthunder Vista file management 4 06-10-2006 06:07 AM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51