Copy File slow using Command Prompt
This started as a customer complaining of poor performance in an application we write, but in diagnosing the problem I found he following. Windows Server 2008 R2 64-bit Open Command Prompt Copy a 1KB file from the C drive to a Network Share (Copy file1.txt \\Server\Share\file1.txt) It took about 15 seconds. I tried it several times and sometimes it took slightly less and other time slightly more. I copied the same file using Windows Explorer by right clicking, choose copy, open window for destination folder, right click and choose paste - it took less than 1 second. Is there anyway to speed this up? We aren't using the command line to the copy, this was just one of the tests I did and I was thinking that the similar poor performance may be related.
August 29th, 2012 2:47pm

Hi, You could have a try to use Network Monitor to capture the exact process when running copy command in CMD. Check if there is any action which takes time before doing the copy command. How to capture network traffic with Network Monitor http://support.microsoft.com/kb/148942TechNet Subscriber Support in forum |If you have any feedback on our support, please contact tnmff@microsoft.com.
Free Windows Admin Tool Kit Click here and download it now
August 30th, 2012 5:16am

I tried using Network Monitor and there is a lot of traffic. I am not sure what I am looking at.
September 12th, 2012 5:58pm

I didn't realize this mattered until just now, but it is only slow when I am testing with a batch file (or from our application). Using copy of xcopy directly at the command prompt is fast. Why is the batch file so slow?
Free Windows Admin Tool Kit Click here and download it now
September 12th, 2012 6:22pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics