Solved

Speeding up Copying a directory with 10 million files inside.

Posted on 2012-04-08
5
295 Views
Last Modified: 2012-06-27
Dear all,
I have a directory which contains 10 million files where each file have a size of 1 KB.
So, the directory is not big, but it contains huge number of files.

I want to integrate this folder in my setup package, when doing it, the setup time increases alot due to the huge number of files inside it.
My friend suggested me to make it a zip file. This method worked prefect in decreasing setup time. However after setup, I run a C# software to extract this directory.
This extraction, takes aloooooooooooot time too.
Any idea on how to fix that?
Thx in advanced experts
0
Comment
Question by:hassanayoub85
  • 3
  • 2
5 Comments
 
LVL 21

Expert Comment

by:motnahp00
ID: 37822022
What about robocopy? It is lightning fast.

robocopy <source_directory> <destination_directory> /R:0 /MIR
0
 

Author Comment

by:hassanayoub85
ID: 37822106
didn't heard about it, from where to get it?
0
 
LVL 21

Expert Comment

by:motnahp00
ID: 37822154
It's native on Vista and up.
0
 

Author Comment

by:hassanayoub85
ID: 37822171
i have xp.
0
 
LVL 21

Accepted Solution

by:
motnahp00 earned 500 total points
ID: 37822192
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let’s list some of the technologies that enable smooth teleworking. 
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question