The easiest way I have found is to point the scheduler to open rclone.exe and paste my command into the arguments statement. Remember to select the user who has the config file. Also for debugging I have added at the end:
well, the best way is to use a batch file and point task scheduler to that batch file.
that way, you can tweak/test the batch file as needed, run it without task scheduler.
if you want to know about, let me know.
Yes @asdffdsa, I agree the batch script method would be best. I have used a batch script complied to exe but unfortunately virus scanner removed it, so kept it simple for now.
For a one-liner I prefer the easiest method I outlined, but I am developing a more complex batch script for other tasks so will point the scheduled task to a script instead, to use more complex commands, such as log rotation.
Batch scripts in Windows is still new to me as I do a lot more scripting on my NAS box running linux (it mounts my Windows drive and pulls data that way). I used to use dedicated back-up software but prefer the cleaner, more powerful and light-weight rclone instead, hence my dive into scheduled tasks using rclone. Plus the native app encryption is great.