# Batch file setup help

**URL:** <https://forum.rclone.org/t/batch-file-setup-help/41109>\
**Category:** Help and Support\
**Created:** [August 19, 2023, 3:52pm UTC](https://forum.rclone.org/t/batch-file-setup-help/41109 "2023-08-19T15:52:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Meeseeks098](https://forum.rclone.org/letter_avatar_proxy/v4/letter/m/b782af/32.png) [@Meeseeks098](https://forum.rclone.org/u/Meeseeks098)\
**Post date:** [August 19, 2023, 3:52pm UTC](https://forum.rclone.org/t/batch-file-setup-help/41109/1 "2023-08-19T15:52:15Z")

</div>

#### What is the problem you are having with rclone?

Unable to run the batch file to sync between folders.

#### Run the command 'rclone version' and share the full output of the command.

```auto
C:\Users\tanze>rclone version
rclone v1.63.1
- os/version: Microsoft Windows 11 Pro 22H2 (64 bit)
- os/kernel: 10.0.22621.2134 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.20.6
- go/linking: static
- go/tags: cmount

```

#### Which cloud storage system are you using? (eg Google Drive)

Google Drive  
I am actually trying to sync between a Syncthing local folder and cloud mounted folder

#### The command you were trying to run (eg `rclone copy /tmp remote:tmp`)

```auto
C:\Users\tanze>rclone sync D:\[[folder name]] F:\[[folder name]

```

basically the above command works fine when executed from Command Prompt. But when I try to do the same from batch file it's not executing.

Batch file Contents

```auto
rclone sync D:\[[folder name]] F:\[[folder name]] --log-level INFO --user-agent rcloneapp --stats 1m
pause

```

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [August 19, 2023, 4:14pm UTC](https://forum.rclone.org/t/batch-file-setup-help/41109/2 "2023-08-19T16:14:46Z")

</div>

welcome to the forum

--- need to use hardcode fullpath, for example `c:\path\to\rclone.exe`  
--- might need to hardcode config file location using `--config`  
--- need run the command with `--log-level DEBUG`

> [@Meeseeks098](#):
>
> basically

--- we cannot see into your machine, need post the `full` output, including  
the `exact` command  
the `exact` syntax

and make sure to test using `--dry-run`

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://forum.rclone.org/user_avatar/forum.rclone.org/kapitainsky/32/14450_2.png) [@kapitainsky](https://forum.rclone.org/u/kapitainsky)\
**Post date:** [August 19, 2023, 5:14pm UTC](https://forum.rclone.org/t/batch-file-setup-help/41109/3 "2023-08-19T17:14:54Z")

</div>

When not sure why something does not work try to log all output:

```auto
rclone sync D:\[[folder name]] F:\[[folder name]] --log-level DEBUG --log-file C:/path/to/rclone.log --user-agent rcloneapp --stats 1m
pause

```

then you can have a loot at `C:/path/to/rclone.log` and it should tell you what was not correct.

Only when all working change it back to `INFO` level only.

---

<div class="post-metadata">

**Author:** ![Meeseeks098](https://forum.rclone.org/letter_avatar_proxy/v4/letter/m/b782af/32.png) [@Meeseeks098](https://forum.rclone.org/u/Meeseeks098)\
**Post date:** [August 20, 2023, 7:12pm UTC](https://forum.rclone.org/t/batch-file-setup-help/41109/4 "2023-08-20T19:12:47Z")

</div>

So I actually installed rclone using chocolatey. In chocolatey bin folder rclone.exe application is present.

 ![image](https://forum.rclone.org/uploads/default/original/3X/f/b/fb2ed5397556d57790ac56c70bbfdeedeef6f4e9.png)  
I am unable to locate the log file path. As a result I am unable to generate the log report.

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://forum.rclone.org/user_avatar/forum.rclone.org/kapitainsky/32/14450_2.png) [@kapitainsky](https://forum.rclone.org/u/kapitainsky)\
**Post date:** [August 20, 2023, 7:15pm UTC](https://forum.rclone.org/t/batch-file-setup-help/41109/5 "2023-08-20T19:15:54Z")

</div>

when you run `rclone` you specify where log file is saved using this flag `--log-file C:/path/to/rclone.log`. You do not locate anything - you explicitly specify where to save it.

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [September 19, 2023, 7:16pm UTC](https://forum.rclone.org/t/batch-file-setup-help/41109/6 "2023-09-19T19:16:49Z")

</div>

Closed on September 19, 2023, 7:16pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
