# Write a Batch File That Will Start Several Syncs Simultaneously

This is for folks who are copying and backing up entire drives or servers.  You are the folks that feel the need for speed.  Or the need to go home and sleep during the copying.  &#x20;

The gist of the process is:

1. Write some two line Beyond Compare scripts, one script per every file copying session you desire.
2. Write a single batch/shell script that simply calls all of your scripts from #1 above
3. Give a command in the terminal to start #2 above.

### &#x20;Step One

Write and save five separate scripts: one script for each of the five syncs you want to simultaneously fire up.  The general syntax of the first line will be LOAD pathname1 pathname2.  The syntax in Windows will look like this:

\
`load C:\Users\egenest\ohio\test_1 "C:\Users\egenest\ohio\empty-lonely-place"`&#x20;

`sync mirror:left->right`&#x20;

(save as *one.bc*)

`load "C:\Users\egenest\ohio\folder COMPARE" "C:\Users\egenest\ohio\empty-lonely-place"`&#x20;

`sync mirror:left->right`&#x20;

(save as *two.bc*)

`load C:\Users\egenest\ohio\scOOOtr "C:\Users\egenest\ohio\empty-lonely-place"`&#x20;

`sync mirror:left->right`&#x20;

(save as *three.bc*)

`load "C:\Users\egenest\ohio\PEDAGOGYtest - Shortcut (2).lnk" "C:\Users\egenest\ohio\empty-lonely-place"`&#x20;

`sync mirror:left->right`&#x20;

(save as *four.bc*)

`load C:\Users\egenest\ohio\test_1 "C:\Users\egenest\ohio\empty-lonely-place"`&#x20;

`sync mirror:left->right`&#x20;

(save as *five.bc*)

### Step Two

Write one batch file that calls all of your little two line scripts from Step 1:<br>

> `start BComp.exe /solo @one.bc`\
> &#x20;`start BComp.exe /solo @two.bc`\
> &#x20;`start BComp.exe /solo @three.bc`\
> &#x20;`start BComp.exe /solo @four.bc`\
> &#x20;`start BComp.exe /solo  @five.bc`\
> &#x20;(save as *fiveFiles.bat*)<br>

### &#x20;Step Three

In Windows, type and enter this at the command line:<br>

> `fiveFiles.bat`

You should see five sessions of BC start up.  That's it; now just wait, maybe for several hours, while your files get copied.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://beyondcompare.gitbook.io/project/scripts-and-the-command-line/write-a-batch-file-that-will-start-several-syncs-simultaneously.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
