Re: Need a fast way(c#) to get directory of files over a WAN using selection criteria
- From: "William Stacey [MVP]" <staceyw@xxxxxxxx>
- Date: Tue, 4 Oct 2005 18:29:40 -0400
Another way would be to create a small console app on the server side that
does the search and outputs a txt file with the filenames that match your
search. Launch this program using psexec or something from the client and
wait for it to finish then copy that file local and parse the file names to
string[]. Then download each of those files. That should run much faster.
--
William Stacey [MVP]
"William Stacey [MVP]" <staceyw@xxxxxxxx> wrote in message
news:uhhAJITyFHA.2792@xxxxxxxxxxxxxxxxxxxxxxx
> Can you post the code. Maybe we can see something.
>
> --
> William Stacey [MVP]
>
> <ganderso@xxxxxxxxxxxxx> wrote in message
> news:1128462980.926939.119190@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> Help!!
>>
>> I need to interrogate about 150,000 files across a WAN and pull in ONLY
>> the files less than 5 days old and larger than 10k bytes. I'm currently
>> using Directory.GetFiles and it's taking hours!!
>>
>> Anyone have any great ideas? Any help will be greatly appreciated.
>>
>> Thanks
>> Greg
>>
>
>
.
- References:
- Re: Need a fast way(c#) to get directory of files over a WAN using selection criteria
- From: William Stacey [MVP]
- Re: Need a fast way(c#) to get directory of files over a WAN using selection criteria
- Prev by Date: Not returning boolean correctly
- Next by Date: Re: Not returning boolean correctly
- Previous by thread: Re: Need a fast way(c#) to get directory of files over a WAN using selection criteria
- Next by thread: Re: Need a fast way(c#) to get directory of files over a WAN using selection criteria
- Index(es):
Relevant Pages
|