Solved

Speeding up Copying a directory with 10 million files inside.

Posted on 2012-04-08
5
290 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The viewer will learn how to set up a document for the web and print and the recommended PPI for printing.
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.

932 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now