Prev: Debugging Classic ASP - Attach Dll host
Next: Reg authentication for classic asp internal web site
From: jodleren on 9 Jul 2010 04:57 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
From: jodleren on 9 Jul 2010 06:33 On Jul 9, 11:57 am, jodleren <sonn...(a)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
From: Bob Barrows on 9 Jul 2010 09:31 jodleren wrote: > On Jul 9, 11:57 am, jodleren <sonn...(a)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&safe=active&q=IXSSO+-.Net&aq=f&aqi=&aql=&oq=&gs_rfai= -- HTH, Bob Barrows
From: Dan on 9 Jul 2010 12:54 "jodleren" <sonnich(a)hot.ee> wrote in message news:a47c7db2-970b-404e-920d-a38e3e8d708d(a)e5g2000yqn.googlegroups.com... > 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
From: jodleren on 9 Jul 2010 13:12 On Jul 9, 7:54 pm, "Dan" <n...(a)worldofspack.com> wrote: > "jodleren" <sonn...(a)hot.ee> wrote in message > > news:a47c7db2-970b-404e-920d-a38e3e8d708d(a)e5g2000yqn.googlegroups.com... > > > 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"
|
Next
|
Last
Pages: 1 2 Prev: Debugging Classic ASP - Attach Dll host Next: Reg authentication for classic asp internal web site |