Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Search for file

Reply
Thread Tools

Search for file

 
 
jodleren
Guest
Posts: n/a
 
      07-09-2010
Hi

Does anyone have any idea how I can do a fast search for a file on
server.

Say, abc.def on \\server\someplace\

I made ascript which uses about 6 minutes for 2200 folders, ~3GB.
Windows does that in ~10 sec.

How can I do that search a lot faster?

Sonnich
 
Reply With Quote
 
 
 
 
jodleren
Guest
Posts: n/a
 
      07-09-2010
On Jul 9, 11:57*am, jodleren <sonn...@hot.ee> wrote:
> Hi
>
> Does anyone have any idea how I can do a fast search for a file on
> server.
>
> Say, abc.def on \\server\someplace\
>
> I made *ascript which uses about 6 minutes for 2200 folders, ~3GB.
> Windows does that in ~10 sec.
>
> How can I do that search a lot faster?
>
> Sonnich


I found the IXSSO, searched for some examples, found none that worked.
Any links please?

Sonnich
 
Reply With Quote
 
 
 
 
Bob Barrows
Guest
Posts: n/a
 
      07-09-2010
jodleren wrote:
> On Jul 9, 11:57 am, jodleren <sonn...@hot.ee> wrote:
>> Hi
>>
>> Does anyone have any idea how I can do a fast search for a file on
>> server.
>>
>> Say, abc.def on \\server\someplace\
>>
>> I made ascript which uses about 6 minutes for 2200 folders, ~3GB.
>> Windows does that in ~10 sec.
>>
>> How can I do that search a lot faster?
>>
>> Sonnich

>
> I found the IXSSO, searched for some examples, found none that worked.
> Any links please?
>

I've never needed to do this so all I can offer is this:
http://www.google.com/search?hl=en&s...=&oq=&gs_rfai=

--
HTH,
Bob Barrows


 
Reply With Quote
 
Dan
Guest
Posts: n/a
 
      07-09-2010

"jodleren" <> wrote in message
news:a47c7db2-970b-404e-920d-...
> Hi
>
> Does anyone have any idea how I can do a fast search for a file on
> server.
>
> Say, abc.def on \\server\someplace\
>
> I made ascript which uses about 6 minutes for 2200 folders, ~3GB.
> Windows does that in ~10 sec.
>
> How can I do that search a lot faster?
>
> Sonnich


Windows uses the Win32 API functions. You would need to write a COM DLL to
do the searching and call that from your ASP page. There are plenty of
examples, search for Google for the FindFile API call.

How are you searching at the moment?

--
Dan

 
Reply With Quote
 
jodleren
Guest
Posts: n/a
 
      07-09-2010
On Jul 9, 7:54*pm, "Dan" <n...@worldofspack.com> wrote:
> "jodleren" <sonn...@hot.ee> wrote in message
>
> news:a47c7db2-970b-404e-920d-...
>
> > Hi

>
> > Does anyone have any idea how I can do a fast search for a file on
> > server.

> How are you searching at the moment?
>
> --
> Dan


this way

dim folderlist()
set fso2 = CreateObject("Scripting.FileSystemObject")

iListPos=0
redim preserve folderlist(iListPos+1)
folderlist(iListPos)=QDisk

iCurrentPos=0
response.write "list<br>"
do while iCurrentPos<=iListPos
Set f = fso2.GetFolder(folderlist(iCurrentPos))
set ff = f.files
For Each fname in ff
if InStr(lcase(fname), item) then
response.write "--Found: " & fname & "<br>"
response.flush()
end if
next
set ff=nothing
Set ff = f.SubFolders
For Each fname in ff
iListPos=iListPos+1
redim preserve folderlist(iListPos+1)
folderlist(iListPos)=fname & "\"

if InStr(lcase(fname), item) then
response.write "--Found: " & fname & "<br>"
response.flush()
end if

next
iCurrentPos=iCurrentPos+1

loop
response.write iListPos & " folders tested"

 
Reply With Quote
 
jodleren
Guest
Posts: n/a
 
      07-09-2010
On Jul 9, 4:31*pm, "Bob Barrows" <reb01...@NOyahoo.SPAMcom> wrote:
> jodleren wrote:
> > On Jul 9, 11:57 am, jodleren <sonn...@hot.ee> wrote:
> >> Hi

>
> >> Does anyone have any idea how I can do a fast search for a file on
> >> server.

>
> >> Say, abc.def on \\server\someplace\

>
> >> I made ascript which uses about 6 minutes for 2200 folders, ~3GB.
> >> Windows does that in ~10 sec.

>
> >> How can I do that search a lot faster?

>
> >> Sonnich

>
> > I found the IXSSO, searched for some examples, found none that worked.
> > Any links please?

>
> I've never needed to do this so all I can offer is this:http://www.google..com/search?hl=en&...-.Net&aq=f&aqi...


Tried this, thanks
I got something to work, but new questions.
I searches in the files, not the file names

Half way there, but still... I tried www.alltheweb.com for searching,
(dont like google), but actually there is not much about IXSSO out
there....

I am looking for "lost" drawing numbers on a FTP disk - which is a
server \\server\ftpfolder which also is not accepted by the IXSSO


Sonnich
 
Reply With Quote
 
Dan
Guest
Posts: n/a
 
      07-12-2010

"jodleren" <> wrote in message
news:6b831223-366d-40fc-b55e-...
> On Jul 9, 7:54 pm, "Dan" <n...@worldofspack.com> wrote:
>> "jodleren" <sonn...@hot.ee> wrote in message
>>
>> news:a47c7db2-970b-404e-920d-...
>>
>> > Hi

>>
>> > Does anyone have any idea how I can do a fast search for a file on
>> > server.

>> How are you searching at the moment?
>>
>> --
>> Dan

>
> this way
>
> dim folderlist()
> set fso2 = CreateObject("Scripting.FileSystemObject")
>


<code snipped>

Right, so you're using the FileSystemObject. I noticed your reply about
IXSSO (by the way, I'd suggest if you want to find additional help with this
that you at least consider using Google, you might not like it but it's a
good way to find far more than ATW indexes), it will work with a network
share if the server on which the share is located has the indexing service
running.

Other than that, all I can suggest is that you use the FindFile API and
create your own COM DLL. There is sample code here:

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

although you'll need to strip it down a bit.

I have a small app that uses the FindFile API to search the image folders
that are shared by all the web sites I run, and it will rattle through
almost 3 million files spread across almost 100,000 folders in less than a
minute (actual file size is irrelevant as for a simple search on filename
the APIs will simply use the MFT), but if you feel the need to draw a
comparison this is 55.6GB of data).

--
Dan

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
| SEO , Search Engine Optimizer, SEARCH OPtiMIzAtIoN with SeaRch OPtiMizer optimizer.seo@gmail.com Digital Photography 0 04-22-2007 04:20 AM
Google search result like site search!! How? =?Utf-8?B?TGFrc2htaSBOYXJheWFuYW4uUg==?= ASP .Net 3 05-06-2005 02:08 AM
removing search engines from the search bar whatever.or.not@gmail.com Firefox 1 02-17-2005 12:06 PM
Search Bar not displaying search Engines Zimran Douglas Firefox 1 01-07-2005 02:30 PM
search within a search within a search - looking for better way...my script times out Abby Lee ASP General 5 08-02-2004 04:01 PM



Advertisments
 



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 52 53 54 55 56 57