Copy accented letter

What is the problem you are having with rclone?

copy fails

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

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

google drive

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

rclone.exe copy "//192.168.1.210/Attivitá" "google-drive:/bck-rclone/Attivitá/

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[renew.bck_gmail.com-rclone]
type = drive
client_id = xxx
client_secret = xxx
scope = drive
service_account_file = C:\rclone\json-rclone.json
team_drive = xxx
root_folder_id = 
acknowledge_abuse = true
stop_on_upload_limit = true
stop_on_download_limit = true

A log from the command that you were trying to run with the -vv flag

2023/10/28 06:57:13 ERROR : Local file system at //?/UNC/192.168.1.210/Attività: error reading source root directory: directory not found
2023/10/28 06:57:13 ERROR : Attempt 1/3 failed with 1 errors and: directory not found
2023/10/28 06:57:13 ERROR : Local file system at //?/UNC/192.168.1.210/Attività: error reading source root directory: directory not found
2023/10/28 06:57:13 ERROR : Attempt 2/3 failed with 1 errors and: directory not found
2023/10/28 06:57:13 ERROR : Local file system at //?/UNC/192.168.1.210/Attività: error reading source root directory: directory not found
2023/10/28 06:57:13 ERROR : Attempt 3/3 failed with 1 errors and: directory not found
2023/10/28 06:57:13 Failed to copy: directory not found

strange is if i run
rclone.exe copy "//192.168.1.210/Attivitá" "google-drive:/bck-rclone/Attivitá/
in cmd works

but if i save a batch file i have error berfore posted
seems "translate" accented à in ├à ...
rclone.exe copy "//192.168.1.210/Attività" "google-drive:/bck-rclone/Attività/

is there a way to save this command in batch file?

thank you

So rclone works with accented characters without any issues.

Then it is not rclone problem but your OS/script/shell - but as you do not provide any details it is impossible to suggest anything.

sorry,
my batch is c:\rclone\backup.bat

and content is

@echo off
c:\rclone\rclone.exe copy "//192.168.1.210/Attivitá" "google-drive:/bck-rclone/Attivitá/
exit

when i run c:\rclone\backup.bat

2023/10/28 09:42:14 ERROR : Local file system at //?/UNC/192.168.1.210/Attività: error reading source root directory: directory not found

thank you

Not really familiar with Windows. For the start I would rather use power shell script instead of simple bat. Maybe other Windows users can give you some advice. I assume that it is very common issue so Google must be also full of answers.

You need to save the file with a text encoding compatible with what cmd uses. Text editors like Notepad++ and VSCode will allow you to change that. Command chcp can be used to view or change what your cmd session uses (so you can also add a chcp command early in your script to set a specific one). Post result of chcp if you need further assistance.

Wild guess: Your file is UTF-8, and adding chcp 65001 to your file solves it..?

thank you to point in right way.

yes i create bat with windows notepad...

now seems solved with add before rclone this command

SETLOCAL EnableDelayedExpansion
@CHCP 65001 >NUL

thank you

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