Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Get List of Specific Amount of Files From Directory

Avatar of angus_young_acdc
angus_young_acdcFlag for United Kingdom of Great Britain and Northern Ireland asked on
.NET ProgrammingC#
5 Comments1 Solution444 ViewsLast Modified:
Hello Experts,

I have to copy 75GB worth of files from various sub folders in a directory, of course this would take a right ole age to actually complete, and as our companies network is notoriously bad the idea is to potentially copy X GB worth of the data at a time overnight.

My question is this, how exactly can I implement something to get X GB worth of files?  I've had a look at Directory.GetFiles and DirectoryInfo GetFiles methods, but neither of them appear to have a limit.  Ideally I would like something, similar to SQL, where I could just have (obviously in C# not SQL :-P ) SELECT TOP 10000 and get a set amount of data.

Is this possible?  And if so, how can I do it?
ASKER CERTIFIED SOLUTION
Avatar of ph_o_enix
ph_o_enix

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answers