Schedule task cant execute the cmd file

What is the problem you are having with rclone?

The win11 scheduled task cannot execute the cmd file,
Double click can execute the cmd file
copy mounted remote network to remote

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

rclone-v1.61.2-windows-amd64

rclone v1.62.2

  • os/version: Microsoft Windows 11 Pro 22H2 (64 bit)
  • os/kernel: 10.0.22621.1344 Build 22621.1344.1344 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.20.2
  • go/linking: static
  • go/tags: cmount

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

webdav

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

Paste command here
rclone copy w:\webdav\185ali\185sere  qq:\tianyi10t185\185   --bwlimit  4m --transfers 3  --max-duration 50m  --log-file="F:\10777t.log" --log-level DEBUG 



#### The rclone config contents with secrets removed.  
<!--  You should use 3 backticks to begin and end your paste to make it readable.   -->

Paste config here




#### A log from the command with the `-vv` flag  
<!-- You should use 3 backticks to begin and end your paste to make it readable.  Or use a service such as https://pastebin.com or https://gist.github.com/   -->

Paste log here
2023/04/02 18:41:14 INFO : Starting bandwidth limiter at 4Mi Byte/s
2023/04/02 18:41:14 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "copy" "w:\webdav\185ali\185sere" "qq:\tianyi10t185\185" "--bwlimit" "4m" "--transfers" "3" "--max-duration" "50m" "--log-file=F:\10777t.log" "--log-level" "DEBUG"]
2023/04/02 18:41:14 DEBUG : Creating backend with remote "w:\webdav\185ali\185sere"
2023/04/02 18:41:14 DEBUG : Using config file from "C:\Users\11971\AppData\Roaming\rclone\rclone.conf"
2023/04/02 18:41:14 DEBUG : fs cache: renaming cache item "w:\webdav\185ali\185sere" to be canonical "//?/w:/webdav/185ali/185sere"
2023/04/02 18:41:14 DEBUG : Creating backend with remote "qq:\tianyi10t185\185"
2023/04/02 18:41:14 DEBUG : found headers:
2023/04/02 18:41:14 DEBUG : fs cache: renaming cache item "qq:\tianyi10t185\185" to be canonical "qq:tianyi10t185/185"
2023/04/02 18:41:14 INFO : webdav root 'tianyi10t185/185': Transfer session HARD deadline: 2023/04/02 19:31:14
2023/04/02 18:41:14 ERROR : Local file system at //?/w:/webdav/185ali/185sere: error reading source root directory: directory not found
2023/04/02 18:41:14 DEBUG : webdav root 'tianyi10t185/185': Waiting for checks to finish
2023/04/02 18:41:14 DEBUG : webdav root 'tianyi10t185/185': Waiting for transfers to finish
2023/04/02 18:41:14 ERROR : Attempt 1/3 failed with 1 errors and: directory not found
2023/04/02 18:41:14 INFO : webdav root 'tianyi10t185/185': Transfer session HARD deadline: 2023/04/02 19:31:14
2023/04/02 18:41:14 ERROR : Local file system at //?/w:/webdav/185ali/185sere: error reading source root directory: directory not found
2023/04/02 18:41:14 DEBUG : webdav root 'tianyi10t185/185': Waiting for checks to finish
2023/04/02 18:41:14 DEBUG : webdav root 'tianyi10t185/185': Waiting for transfers to finish
2023/04/02 18:41:14 ERROR : Attempt 2/3 failed with 1 errors and: directory not found
2023/04/02 18:41:14 INFO : webdav root 'tianyi10t185/185': Transfer session HARD deadline: 2023/04/02 19:31:14
2023/04/02 18:41:14 ERROR : Local file system at //?/w:/webdav/185ali/185sere: error reading source root directory: directory not found
2023/04/02 18:41:14 DEBUG : webdav root 'tianyi10t185/185': Waiting for checks to finish
2023/04/02 18:41:14 DEBUG : webdav root 'tianyi10t185/185': Waiting for transfers to finish
2023/04/02 18:41:14 ERROR : Attempt 3/3 failed with 1 errors and: directory not found
2023/04/02 18:41:14 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 0.2s

2023/04/02 18:41:14 DEBUG : 4 go routines active
2023/04/02 18:41:14 Failed to copy: directory not found

hello and welcome the forum,

post the output of rclone config show, make sure to redact/remove private info such as id/token/passwords

rclone cannot find the source dir, so no files can be copied.
is w: a network drive?

--- need to use full paths.
--- need to hardcode the location of the config file.
c:\path\to\rclone.exe --config C:\Users\11971\AppData\Roaming\rclone\rclone.conf ......

can you post screenshots from task scheduler?

w: is a network drive
image
Display 0x3 after program operation

using windows explorer, can you access the w: drive?

i can and double click it can execute the cmd file。

It's just not possible in a planned task

up above, i asked for some very basic info and for you to try a few ideas.
please post all the request info. so i do not have to keep asking.

sorry,i don't know how to hardcode the location of the config file.

  1. get location of config file. the location will differ on your system.
rclone config file
Configuration file is stored at:
c:\data\rclone\rclone.conf
  1. add this to the rclone command
    --config="c:\data\rclone\rclone.conf"

The problem has been solved, thank you very much

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