Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista file management

Vista - find file containing text inside the file

Reply
 
Old 08-27-2009   #11 (permalink)


Vista Home Premium x64
 
 

Re: find file containing text inside the file

I've been following this thread since I found it via Google. Very informative. I was wondering if there was any way to index a network location or would I have to index on the server? I tried to use the indexing service via Control Panel, but it doesn't seem to pick up any of my mapped network drives. Is there a way I can index a network location on my local Vista machine?

To add to the problem, I'm running Home Premium x64. Am I limited because of the Vista package I'm using? Can Business accomplish this task?

Thanks!

My System SpecsSystem Spec
Old 08-27-2009   #12 (permalink)


 
 

Re: find file containing text inside the file

http://support.microsoft.com/kb/918996

--
..
--
"hybridmoments82" <guest@xxxxxx-email.com> wrote in message
news:3da16a4ff67eb7a2481192e9a697e51d@xxxxxx-gateway.com...
Quote:

>
> I've been following this thread since I found it via Google. Very
> informative. I was wondering if there was any way to index a network
> location or would I have to index on the server? I tried to use the
> indexing service via Control Panel, but it doesn't seem to pick up any
> of my mapped network drives. Is there a way I can index a network
> location on my local Vista machine?
>
> To add to the problem, I'm running Home Premium x64. Am I limited
> because of the Vista package I'm using? Can Business accomplish this
> task?
>
> Thanks!
>
>
> --
> hybridmoments82
My System SpecsSystem Spec
Old 08-30-2009   #13 (permalink)


VISTA home prem 32bit SP2 --- XP Pro SP3 32bit
 
 

Re: find file containing text inside the file

try this
Attached Thumbnails
capture.jpg  
My System SpecsSystem Spec
Old 10-21-2009   #14 (permalink)


Vista Home Premium 32bit
 
 

Re: find file containing text inside the file

Imagine the folowing situation: I downloaded .zip-archive with thouzands of .php-files. I unpacked the file to the folder at my Desktop (which is indexed by default). I want to find all files containing string «Test». So, I added «Plain text filter» to the .php files extension in the indexing settings. Should I wait hours until the indexing will be done? Or I can just search (more slowly)? I tryed and did not get any results! So, I will wait. It's very annoying!

Another case: I want to find files containing Russian word «Привет». The problem is that that word can be encoded by different bytes depending on codepage (most popular are cp1251, UTF-8, KOI8-R). I tested text search and found that if BOM present at the start of the file, file considered UTF-8, otherwise file considered cp1251. But how about UTF-8 files which do not have BOM mark at the beginning? When I program PHP I always remove BOM, because othervise these BOMs are sended to the user-agent by server. Notepad application still detects UTF-8 in such files, but Search is not (see attached files). Also, how about KOI8? I didn't find any way to specify encoding in search options.

Third case: how about different word forms in Russian? «One day» = «Один день», «Three days» = «Три дня», «Five days» = «Пять дней», «All these days» = «Все эти дни»,... How I will find «день» («day») with all possible forms?

It's a pity that Windows text search is completely useless.
Attached Files
File Type: txt test1251.txt (6 Bytes, 2 views)
File Type: txt testKOI8-R.txt (6 Bytes, 1 views)
File Type: txt testUTF8BOM.txt (15 Bytes, 1 views)
File Type: txt testUTF8NoBOM.txt (12 Bytes, 9 views)
My System SpecsSystem Spec
Old 10-21-2009   #15 (permalink)
Retroman


 
 

Re: Re: find file containing text inside the file

On Wed, 21 Oct 2009 05:14:34 -0500, SAnton <guest@newsgroup-email.com>
wrote:
Quote:

>
>Imagine the folowing situation: I downloaded .zip-archive with thouzands
>of .php-files. I unpacked the file to the folder at my Desktop (which is
>indexed by default). I want to find all files containing string «Test».
>So, I added «Plain text filter» to the .php files extension in the
>indexing settings. Should I wait hours until the indexing will be done?
>Or I can just search (more slowly)? I tryed and did not get any results!
>So, I will wait. It's very annoying!
>
>Another case: I want to find files containing Russian word
>«Привет». The problem is that that
>word can be encoded by different bytes depending on codepage (most
>popular are cp1251, UTF-8, KOI8-R). I tested text search and found that
>if BOM present at the start of the file, file considered UTF-8,
>otherwise file considered cp1251. But how about UTF-8 files which do not
>have BOM mark at the beginning? When I program PHP I always remove BOM,
>because othervise these BOMs are sended to the user-agent by server.
>Notepad application still detects UTF-8 in such files, but Search is not
>(see attached files). Also, how about KOI8? I didn't find any way to
>specify encoding in search options.
>
>Third case: how about different word forms in Russian? «One day» =
>«Один день», «Three
>days» = «Три дня», «Five days» =
>«Пять дней», «All these
>days» = «Все эти
>дни»,... How I will find
>«день» («day») with all possible forms?
>
>It's a pity that Windows text search is completely useless.
>
So, you find a few unusual situations that don't work as you would like
and you then conclude that Search is useless? That is laughable. I've
been using Windows Search on Vista for over two years, and overall it
works extremely well, once I learned how to use it.

Incidentally, the Desktop folder is *not* indexed by default. Try moving
your files to your Documents folder.

This forum is actually on Usenet, not on the "parasitic" Web forum that
you posted from. As a result, the HTML character entity references in
your examples are not decoded for most readers. It's unlikely that
English-speaking users are going to be able to help you anyway, since your
problems involve searching for Russian words. I suggest that you look for
a support forum for Russian-speaking users of Vista.

Doug M. in NJ
My System SpecsSystem Spec
Old 10-21-2009   #16 (permalink)


VISTA home prem 32bit SP2 --- XP Pro SP3 32bit
 
 

Re: find file containing text inside the file

Quote  Quote: Originally Posted by SAnton View Post
Imagine the folowing situation: I downloaded .zip-archive with thouzands of .php-files. I unpacked the file to the folder at my Desktop (which is indexed by default). I want to find all files containing string «Test». So, I added «Plain text filter» to the .php files extension in the indexing settings. Should I wait hours until the indexing will be done? Or I can just search (more slowly)? I tryed and did not get any results! So, I will wait. It's very annoying!

Another case: I want to find files containing Russian word «Привет». The problem is that that word can be encoded by different bytes depending on codepage (most popular are cp1251, UTF-8, KOI8-R). I tested text search and found that if BOM present at the start of the file, file considered UTF-8, otherwise file considered cp1251. But how about UTF-8 files which do not have BOM mark at the beginning? When I program PHP I always remove BOM, because othervise these BOMs are sended to the user-agent by server. Notepad application still detects UTF-8 in such files, but Search is not (see attached files). Also, how about KOI8? I didn't find any way to specify encoding in search options.

Third case: how about different word forms in Russian? «One day» = «Один день», «Three days» = «Три дня», «Five days» = «Пять дней», «All these days» = «Все эти дни»,... How I will find «день» («day») with all possible forms?

It's a pity that Windows text search is completely useless.
love the post!!!

try Super Finder 1.5.3.0 Free Download
My System SpecsSystem Spec
Old 10-21-2009   #17 (permalink)


Vista Home Premium 32bit
 
 

Re: find file containing text inside the file

Quote  Quote: Originally Posted by pacinitaly View Post
Quote  Quote: Originally Posted by SAnton View Post
Imagine the folowing situation: I downloaded .zip-archive with thouzands of .php-files. I unpacked the file to the folder at my Desktop (which is indexed by default). I want to find all files containing string «Test». So, I added «Plain text filter» to the .php files extension in the indexing settings. Should I wait hours until the indexing will be done? Or I can just search (more slowly)? I tryed and did not get any results! So, I will wait. It's very annoying!

Another case: I want to find files containing Russian word «Привет». The problem is that that word can be encoded by different bytes depending on codepage (most popular are cp1251, UTF-8, KOI8-R). I tested text search and found that if BOM present at the start of the file, file considered UTF-8, otherwise file considered cp1251. But how about UTF-8 files which do not have BOM mark at the beginning? When I program PHP I always remove BOM, because othervise these BOMs are sended to the user-agent by server. Notepad application still detects UTF-8 in such files, but Search is not (see attached files). Also, how about KOI8? I didn't find any way to specify encoding in search options.

Third case: how about different word forms in Russian? «One day» = «Один день», «Three days» = «Три дня», «Five days» = «Пять дней», «All these days» = «Все эти дни»,... How I will find «день» («day») with all possible forms?

It's a pity that Windows text search is completely useless.
love the post!!!

try Super Finder 1.5.3.0 Free Download
I have tryed Super Finder. It fast, perform real content search. That is good.

First I tryed it on my folder with 300 PHP-files (don't worry, these files are English-only). It found 3 files compared to the 1 file found by Vista using the same search query. That is very strange: it looks like Vista Search is approximate and unreliable. Imagine that your boss required you to find all files containing "bucks" and replace these by "dollars". Failed to perform this task may result in serious consequences for you.

The bad thing is that Russian text was found only in CP1251-encoded text files. UTF-8 files (with and without BOM) are ignored. I tryed to check «unicode» checkbox in the Super Finder, but in that case I got zero results. This is worse than Vista search, which at least can recognise UTF-8 by BOM.
My System SpecsSystem Spec
Old 10-21-2009   #18 (permalink)


VISTA home prem 32bit SP2 --- XP Pro SP3 32bit
 
 

Re: find file containing text inside the file

Quote  Quote: Originally Posted by SAnton View Post
Quote  Quote: Originally Posted by pacinitaly View Post
Quote  Quote: Originally Posted by SAnton View Post
Imagine the folowing situation: I downloaded .zip-archive with thouzands of .php-files. I unpacked the file to the folder at my Desktop (which is indexed by default). I want to find all files containing string «Test». So, I added «Plain text filter» to the .php files extension in the indexing settings. Should I wait hours until the indexing will be done? Or I can just search (more slowly)? I tryed and did not get any results! So, I will wait. It's very annoying!

Another case: I want to find files containing Russian word «Привет». The problem is that that word can be encoded by different bytes depending on codepage (most popular are cp1251, UTF-8, KOI8-R). I tested text search and found that if BOM present at the start of the file, file considered UTF-8, otherwise file considered cp1251. But how about UTF-8 files which do not have BOM mark at the beginning? When I program PHP I always remove BOM, because othervise these BOMs are sended to the user-agent by server. Notepad application still detects UTF-8 in such files, but Search is not (see attached files). Also, how about KOI8? I didn't find any way to specify encoding in search options.

Third case: how about different word forms in Russian? «One day» = «Один день», «Three days» = «Три дня», «Five days» = «Пять дней», «All these days» = «Все эти дни»,... How I will find «день» («day») with all possible forms?

It's a pity that Windows text search is completely useless.
love the post!!!

try Super Finder 1.5.3.0 Free Download
I have tryed Super Finder. It fast, perform real content search. That is good.

First I tryed it on my folder with 300 PHP-files (don't worry, these files are English-only). It found 3 files compared to the 1 file found by Vista using the same search query. That is very strange: it looks like Vista Search is approximate and unreliable. Imagine that your boss required you to find all files containing "bucks" and replace these by "dollars". Failed to perform this task may result in serious consequences for you.

The bad thing is that Russian text was found only in CP1251-encoded text files. UTF-8 files (with and without BOM) are ignored. I tryed to check «unicode» checkbox in the Super Finder, but in that case I got zero results. This is worse than Vista search, which at least can recognise UTF-8 by BOM.

sorry
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
find text in file how Vista General
Looping Through A Text File To Find Patterns From Another Text Fil PowerShell
Find text within file Vista General
5536 rar file - 2.58 gb downloaded only 14kb text file inside Vista General
5536 *.rar file - 2.58gb's but only a 14kb text file inside Vista General


Vista Forums 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 Ltd

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