Faster file move method other than File.Move
I have a console application that is going to take about 625 days to complete. Unless there is a way to make it faster. First off I am working in a directory that has around 4,000,000 files in if not more. I'm working in a database that has a row for each file and then some. Now working with the SQL is relatively fast, the bottleneck is when I use File.Move() each move takes 18 seconds to complete. Is there a faster way than File.Move() ? This is the bottleneck: File.Move(Path.Combine(location, fileName), Path.Combine(rootDir, fileYear, fileMonth, fileName)); All of the other code runs pretty