Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 23rd, 2005, 1:27 PM   #1
SaturN
Programmer
 
Join Date: Apr 2005
Location: Uk
Posts: 68
Rep Power: 4 SaturN is on a distinguished road
Cool 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,
Lemme know of any glitches Thanks
__________________
while me is alive:
	make(life,simple)

Last edited by SaturN; Jul 23rd, 2005 at 1:46 PM. Reason: sys not imported :DOH:
SaturN is offline   Reply With Quote
Old Jul 23rd, 2005, 2:14 PM   #2
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
Try Google Desktop
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials.
--WilliamSChips on Slashdot
uman is offline   Reply With Quote
Old Jul 23rd, 2005, 3:57 PM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 9 DaWei is on a distinguished road
Google Desktop reigns.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jul 23rd, 2005, 4:35 PM   #4
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
GoogleDesktop > *
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials.
--WilliamSChips on Slashdot
uman is offline   Reply With Quote
Old Jul 23rd, 2005, 9:44 PM   #5
Navid
Hobbyist Programmer
 
Navid's Avatar
 
Join Date: Feb 2005
Location: Canada
Posts: 187
Rep Power: 4 Navid is on a distinguished road
Send a message via MSN to Navid
Cool I like the idea.
Navid is offline   Reply With Quote
Old Jul 24th, 2005, 9:45 AM   #6
SaturN
Programmer
 
Join Date: Apr 2005
Location: Uk
Posts: 68
Rep Power: 4 SaturN is on a distinguished road
Sadly, i never knew there was a google desktop..
All that time in to that and there's already something better!!!
haha, sweet
__________________
while me is alive:
	make(life,simple)
SaturN is offline   Reply With Quote
Old Jul 24th, 2005, 1:35 PM   #7
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 453
Rep Power: 3 Ancient Dragon is on a distinguished road
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.
Ancient Dragon is offline   Reply With Quote
Old Jul 24th, 2005, 1:59 PM   #8
thechristelegacy
Expert Programmer
 
thechristelegacy's Avatar
 
Join Date: Jul 2004
Location: Somerset, Pa
Posts: 707
Rep Power: 4 thechristelegacy is on a distinguished road
Send a message via AIM to thechristelegacy Send a message via MSN to thechristelegacy
I trust Google. They're always returning to the OS community.
thechristelegacy is offline   Reply With Quote
Old Jul 24th, 2005, 2:17 PM   #9
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 453
Rep Power: 3 Ancient Dragon is on a distinguished road
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)
Ancient Dragon is offline   Reply With Quote
Old Jul 24th, 2005, 2:30 PM   #10
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
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.
Cerulean is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:54 PM.

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