# Error with simple file copy

**URL:** <https://resource.dopus.com/t/error-with-simple-file-copy/42174>\
**Category:** Help & Support\
**Created:** [September 8, 2022, 6:44am UTC](https://resource.dopus.com/t/error-with-simple-file-copy/42174 "2022-09-08T06:44:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![slouw](https://resource.dopus.com/letter_avatar_proxy/v4/letter/s/898d66/32.png) [@slouw](https://resource.dopus.com/u/slouw)\
**Post date:** [September 8, 2022, 6:44am UTC](https://resource.dopus.com/t/error-with-simple-file-copy/42174/1 "2022-09-08T06:44:13Z")

</div>

I just upgrade to 12.29 as part of an effort to deal with another [onedrive context menu related matter](https://resource.dopus.com/t/onedrive-related-context-menu-items/42171/6).  
Now I am troublehooting problem with [Lister not Refreshing and Explorer Replacement](https://resource.dopus.com/t/lister-not-refreshing-and-explorer-replacement/40321).  
I will post separate blog on that when I have done some investigation. I mention it so the reader knows about it as it might have implications for the odd thing I am seeing below.  
As part of those investigations I setup a simple file copy as you can see.  
The copy works but I get the error message.  
Why?  
The internal command I am running I think you can see in the screenshot is

> copy D:\test\test.png D:\test2  
> The copy completes as you can see successfully. It does not matter whether I click **Skip** or **Abort** the copy still works i.e. test.png still ends up in the destination folder.  
> Before I do the command I refresh both listers.

What is going wrong?

 ![image](https://resource.dopus.com/uploads/default/original/3X/b/1/b1f4d3e71b78a6a01f4def24fe84429d879bff2c.png)  
 ![image](https://resource.dopus.com/uploads/default/original/3X/a/e/aebc284c93bdda66724c5046d788ea6f87fb3e34.png)

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [September 8, 2022, 7:12am UTC](https://resource.dopus.com/t/error-with-simple-file-copy/42174/2 "2022-09-08T07:12:37Z")

</div>

> [@slouw](#):
>
> copy D:\test\test.png D:\test2

That command is going to copy two things, test.png and the test2 folder, into the current destination folder/tab. If the current destination is the test2 folder then you’ll get an error message for the second item as you can’t copy a folder into itself.

If the aim is to copy just one file into a specified folder (regardless of which folder/tab is the current destination), you need to add `TO` before the folder name.

---

<div class="post-metadata">

**Author:** ![slouw](https://resource.dopus.com/letter_avatar_proxy/v4/letter/s/898d66/32.png) [@slouw](https://resource.dopus.com/u/slouw)\
**Post date:** [September 8, 2022, 7:40am UTC](https://resource.dopus.com/t/error-with-simple-file-copy/42174/3 "2022-09-08T07:40:22Z")

</div>

Ah the explained! Thanks
