Cygnes' Weblog

Tuesday, December 11, 2007

Vista Network File Copying

I'm using CruiseControl.net for my auto build environment. One part of the build is copying my release to a network server. The bad part about this is that my build is taking ages, just because of the slow Vista file copying. 2 MB file is taking more than 2 minutes to copy. Copying is taking more time than building the whole project. So I really needed a faster method to copy my files. I tried RoboCopy, copy and xcopy. They are all slow, so I decided to write a simple delphi console application that copies a file to a destination path. Guess what, instead of 2 minutes it takes less than 2 seconds, so beat this Vista. All I used is a TFileStream for input and a TFileStream from output. Geez, that's all it took.

Go Delphi! You made my day, again!

Labels: , , , , , ,

0 Comments:

Post a Comment



Links to this post:

Create a Link

<< Home