# Copying In Batch

**URL:** <https://resource.dopus.com/t/copying-in-batch/6838>\
**Category:** Help & Support\
**Created:** [October 2, 2008, 11:05pm UTC](https://resource.dopus.com/t/copying-in-batch/6838 "2008-10-02T23:05:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimerb](https://resource.dopus.com/user_avatar/resource.dopus.com/jimerb/32/51515_2.png) [@jimerb](https://resource.dopus.com/u/jimerb)\
**Post date:** [October 2, 2008, 11:05pm UTC](https://resource.dopus.com/t/copying-in-batch/6838/1 "2008-10-02T23:05:08Z")

</div>

Hello,

Can someone tell me if something like this is possible?

I have a ton of files I need to copy and they are in diverse locations.

Instead of me having to babysit the copies I would like to give some instructions to opus and have it take care of it.

Example:

Copy c:\TopicA\Subtopic1\* x:\TopicA\Subtopic1  
Copy c:\TopicA\Subtopic2\* y:\TopicA\Subtopic2  
Copy c:\TopicB\Subtopic3\* y:\TopicA\Subtopic3  
Copy c:\TopicC\Subtopic4\* z:\TopicA\Subtopic4

If someone can tell me a way to craft something like this from within opus that would be great.

Thanks.

---

<div class="post-metadata">

**Author:** ![jimerb](https://resource.dopus.com/user_avatar/resource.dopus.com/jimerb/32/51515_2.png) [@jimerb](https://resource.dopus.com/u/jimerb)\
**Post date:** [October 2, 2008, 11:06pm UTC](https://resource.dopus.com/t/copying-in-batch/6838/2 "2008-10-02T23:06:49Z")

</div>

CORRECTION: (Can't seem to edit my post.)

Copy c:\TopicA\Subtopic1\* x:\TopicA\Subtopic1  
Copy c:\TopicA\Subtopic2\* y:\TopicA\Subtopic2  
Copy c:\TopicB\Subtopic3\* y:\TopicB\Subtopic3  
Copy c:\TopicC\Subtopic4\* z:\TopicC\Subtopic4

---

<div class="post-metadata">

**Author:** ![searcher123](https://resource.dopus.com/user_avatar/resource.dopus.com/searcher123/32/26261_2.png) [@searcher123](https://resource.dopus.com/u/searcher123)\
**Post date:** [October 2, 2008, 11:50pm UTC](https://resource.dopus.com/t/copying-in-batch/6838/3 "2008-10-02T23:50:14Z")

</div>

quote="jimerb"Instead of me having to babysit the copies I would like to give some instructions to opus and have it take care of it.

Example:

Copy c:\TopicA\Subtopic1\* x:\TopicA\Subtopic1  
Copy c:\TopicA\Subtopic2\* y:\TopicA\Subtopic2  
Copy c:\TopicB\Subtopic3\* y:\TopicA\Subtopic3  
Copy c:\TopicC\Subtopic4\* z:\TopicA\Subtopic4

(...)[/quote]

I can not understand your real need! ☹ (If you want to type a batch file, why you did not use CMD instead of DOpus?)

Anyway, you can use DOpus CLI for copying files. The syntax will be as:

```auto
Copy c:\TopicA\Subtopic1\*.* TO x:\TopicA\Subtopic1
```

---

<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:** [October 3, 2008, 6:19am UTC](https://resource.dopus.com/t/copying-in-batch/6838/4 "2008-10-03T06:19:34Z")

</div>

[quote="searcher123"]Anyway, you can use DOpus CLI for copying files. The syntax will be as:

```auto
Copy c:\TopicA\Subtopic1\*.* TO x:\TopicA\Subtopic1
```

Use \* rather than _._ with Opus, else it won't copy files/folders that don't have a . in them.

If you have a huge list of folders then you could build up a button using the same syntax, then click the button. That would work as well as using the Opus CLI and is probably easier to edit/paste into.

---

<div class="post-metadata">

**Author:** ![jimerb](https://resource.dopus.com/user_avatar/resource.dopus.com/jimerb/32/51515_2.png) [@jimerb](https://resource.dopus.com/u/jimerb)\
**Post date:** [October 4, 2008, 1:31am UTC](https://resource.dopus.com/t/copying-in-batch/6838/5 "2008-10-04T01:31:44Z")

</div>

Your on the right track of what Im looking for.

How do I create the script? I've been using opus for a year or so but I've never set up a script in it.

How do I get to Dopus "CLI?"

I'm pretty good with scripts and stuff. I just need to be pointed in the right direction.

Do you know if there is a way to do special handling on a copy or move? For example if a move gets an error because a file is set as read only is there a switch or error handling that can bypass it or force it to move?

---

<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:** [October 4, 2008, 7:48am UTC](https://resource.dopus.com/t/copying-in-batch/6838/6 "2008-10-04T07:48:28Z")

</div>

> [@jimerb](#):
>
> How do I create the script?

Watch [Toolbars 1 (video tutorial)](https://resource.dopus.com/t/toolbar-editing-video-tutorial/1205/1).

> [@jimerb](#):
>
> How do I get to Dopus "CLI?"

Drag the CLI button out of the Customize/Commands window on to your toolbar, then click it.

Alternatively, if you have the find-as-you-type field enabled in Opus, just type \>CLI while in a directory. (Avoid special directories like Desktop and My Computer where FAYT doesn't work.)

> [@jimerb](#):
>
> Do you know if there is a way to do special handling on a copy or move?

You can force overwrites (i.e. of read-only files) and skip errors without prompting by passing the Copy command certain arguments. See the manual, under Opus Raw Commands, for descriptions of all the arguments.
