Shutdown after upload job

Is there a flag or config that I can use to shut down my windows 10 computer after a rclone job is complete?

hello and welcome to the forum,

when rclone completes it will set an exit code

so write a batch script that does

  1. run rclone
  2. if rclone completed without error then shutdown

rclone sync source: dest:
if %errorlevel% equ 0 shutdown /s /f
if %errorlevel% equ 9 shutdown /s /f
echo rclone failed with error=%errorlevel%
1 Like

This works. Thank you so much.

1 Like

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