Windows copy a large file and I halfway cancel did it copy, did it copy

file-transferwindows

In Windows Server 2012 I copy a large file 13GB (file A) and overwrite to same file name but different path (file B). It prompted overwrite and I click Yes. It copy about 5%, and I immediately press cancel.

My question is did file B any part of the file been amended? It is a database file. Because I notice the modified had been updated.

Update:

I create a dummy text file try to simulate the situation again.

Create a file => a\dummy.txt

a>echo aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa > dummy.txt

a>for /L %i in (1,1,25) do type dummy.txt >> dummy.txt

Create another file => b\dummy.txt

b>echo bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb > dummy.txt

b>for /L %i in (1,1,25) do type dummy.txt >> dummy.txt

It generate about 2GB for each text file.

I tried copy and paste in local PC environment and press yes for replace the file, it run about 10% I press cancel. The destination file just disappeared.

Then, I tried in Network environment, which is the real situation that I was having before. I actually copy from a server A replace to backup server B. The same thing happened. The destination file also disappeared.

When I copy and paste and press cancel. The destination file just disappeared. Any idea to prove the file had been amended?

Best Answer

Thanks for all the comments. The conclusion is even through only few percentage is copy. The file confirmed amended.

Below is the case study.

With Delete Checked, If it only few percentage copied. I press cancel. The fill will be delted.

With Delete Checked, If it only few percentage copied. I press cancel. The fill will be deleted.

Next, I changed the deletable to unchecked. With this option, when I cancel the copy operation, the original file will not be deleted. enter image description here

I noted down both a\dummy.txt and b\dummy.txt checksum.

As I copy b\dummy.txt and immediately cancel it. I run the checksum to check the file. It is confirmed the checksum is different.

So by this testing. I can concluded that if you copy a file, even through you cancel it. The file already amended.

Thank you everyone for you comment contribution. So do backup first before overwrite your file.

Related Question