Re: Need a fast way(c#) to get directory of files over a WAN using selection criteria

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
>>
>
>


.



Relevant Pages

  • Re: password salting
    ... You could auth with the server using a well-known account ... William Stacey [MVP] ... | SSL/TLS connection. ... | William Stacey wrote: ...
    (microsoft.public.dotnet.security)
  • Re: DNS Round Robin not working Correctly
    ... >> 2) Double check the TTL you are actually getting for the A records. ... >> William Stacey, MVP ... >>> Unfortunately, if I ping the DNS name, I always get the same server. ...
    (microsoft.public.windows.server.dns)
  • Re: Where should DNS be listening?
    ... William Stacey made a post then I commented ... Once you have to listen on multiple ... you need multiple threads or some form of async server. ... Microsoft Windows MVP - Windows Server - Directory Services Security Is Like An Onion, ...
    (microsoft.public.win2000.dns)
  • Re: DNS Pointer issue
    ... >>after it tries to get the server name for the server IP ... >>that IP range in your dns server. ... >>William Stacey, MVP ...
    (microsoft.public.win2000.dns)
  • Re: Missing one of the "default Password Replication Policy groups
    ... MVP - Directory Services ... Microsoft's Thrive IT Pro of the Month - June 2009 ... Windows Server 2008 schema level. ...
    (microsoft.public.windows.server.active_directory)