![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Apr 2005
Location: Uk
Posts: 68
Rep Power: 4
![]() |
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: |
|
|
|
|
|
#2 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 4
![]() |
Try Google Desktop
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials. --WilliamSChips on Slashdot |
|
|
|
|
|
#3 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#4 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 4
![]() |
GoogleDesktop > *
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials. --WilliamSChips on Slashdot |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
|
Cool I like the idea.
|
|
|
|
|
|
#6 |
|
Programmer
Join Date: Apr 2005
Location: Uk
Posts: 68
Rep Power: 4
![]() |
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) |
|
|
|
|
|
#7 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 530
Rep Power: 4
![]() |
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. |
|
|
|
|
|
#8 |
|
Expert Programmer
|
I trust Google. They're always returning to the OS community.
|
|
|
|
|
|
#9 | |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 530
Rep Power: 4
![]() |
Quote:
|
|
|
|
|
|
|
#10 |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|