Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Coder's Corner Lounge (http://www.programmingforums.org/forum11.html)
-   -   An alternative to 'Windows Search'... (http://www.programmingforums.org/showthread.php?t=5048)

SaturN Jul 23rd, 2005 1:27 PM

An alternative to 'Windows Search'...
 
got sick of windows search funtion, seemed slow to me!! might just be crap computer, so i decided to cook up my own version in Python, so if anyone is interested in a replacement!
Here it is

:

#Python version 4.1
import re, os, sys
print '''
This Program Is A File Search Program
enter a path
then enter a search term
program will return any files found!
'''
def Main():
        path = raw_input("Path: ")
        s = raw_input("Search: ")
        s = s.lower()
        s = s.split()
        for root, dirs, files in os.walk(path):
                for name in files:
                        for a in range(len(s)):
                                if re.search('.*?%s'% (s[a]), name.lower()):
                                        print '\nFile Found'
                                        print os.path.join(root, name)
                for name in dirs:
                        for a in range(len(s)):
                                if re.search('.*?%s'% (s[a]), name.lower()):
                                        print '\nDirectory'
                                        print os.path.join(root, name)
        s_a = raw_input("New Search? (Y/N) ")
        if s_a.lower() == 'n':
                sys.exit()
        else:
                Main()
Main()


If anyone likes the idea, I might move on to a GUI version, and another which will included a startfile function, :P
Lemme know of any glitches Thanks

uman Jul 23rd, 2005 2:14 PM

Try Google Desktop

DaWei Jul 23rd, 2005 3:57 PM

Google Desktop reigns.

uman Jul 23rd, 2005 4:35 PM

GoogleDesktop > *

Navid Jul 23rd, 2005 9:44 PM

Cool I like the idea.

SaturN Jul 24th, 2005 9:45 AM

Sadly, i never knew there was a google desktop..
All that time in to that and there's already something better!!!
haha, :D sweet :D

Ancient Dragon Jul 24th, 2005 1:35 PM

Read the license agreement very carefully before installing Google Desktop. It will send some information back to Google, and there is no guarentee at all what information other 3d party plugins may get from your computer. Sounds very much like a gigantic hole for viruses and allow others to steal your identify.

No thanks -- I think I'll pass on that freebe.

thechristelegacy Jul 24th, 2005 1:59 PM

I trust Google. They're always returning to the OS community.

Ancient Dragon Jul 24th, 2005 2:17 PM

Quote:

Originally Posted by thechristelegacy
I trust Google. They're always returning to the OS community.

you are too naive. When it comes to my identity and other personal information, I wouldn't trust my grandmother (if I had one)

Cerulean Jul 24th, 2005 2:30 PM

I trust Google Desktop as far as the base Google Desktop install is concerned. What I won't trust are external plugins. I recently made a Google Desktop plugin to handle SVG images and noted that there's nothing stopping you just contacting a server with whatever information you'd like from the client's computer.

Beagle is a very nice desktop search application if you're running a Linux box.


All times are GMT -5. The time now is 5:03 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC