How can I retrieve the exit code ? (on a cmd windows)

After a rclone command is done, I would like to trigger a Traytip that retrieve the exit code so I can if it was successful or not. I have found the list of exit codes but I don’t find any information about retrieving it.

I run my rclone cmd in a simple cmd script and I use a log file and (to get some info in the cmd in the mean time ) --stats-one-line -P --stats

%errorlevel%. Isn’t that it on windows?

1 Like

Thanks Calisro, it’s working!

A simple echo %ERRORLEVEL%, just after my command retrieves the exit code.

(to keep the cmd open, add after set /p id="continue?" )

Super!

1 Like

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