Pre/Post Backup Events: Program exit status ignored

Questions about Cobian Backup 11 (Gravity)
Post Reply
pandergast
Posts: 2
Joined: 28 Jan 2022, 17:01

Pre/Post Backup Events: Program exit status ignored

Post by pandergast »

Hello,

I just started using Cobian Backup 11 on Windows 10.

Great program, I like it :APP

What I've noticed when setting up events for a task:

I have the 'cancel the task if some event fails' option ticked and I wanted to have a pre-backup event call & wait:

COMMANDLINE,"powershell ""[System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms');$ret=[System.Windows.Forms.Messagebox]::Show('Should backup start now?', 'Windowtitle', [System.Windows.Forms.MessageBoxButtons]::OKCancel);exit $ret-1""",true

The script shows a dialog box asking if the backup should start plus an OK and Cancel button.
In the case of Ok the program returns exit code 0, in case of Cancel exit code 1.

The problem is that Cobian Backup doesn't use the return code of the program to check if the script "failed".

I think this is a highly unusual behavior as there is no reason not to use the return code when waiting for the termination of the script.

I would thus like to suggest to include checking the exit status of a program/script when waiting for its termination and using it to cancel the task in future versions.

Thanks,
pandergast
User avatar
cobian
Site Admin
Posts: 4611
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Pre/Post Backup Events: Program exit status ignored

Post by cobian »

Unfortunately version 11 will not be developed anymore. :(
--
Luis Cobian
Cobian Backup's creator
pandergast
Posts: 2
Joined: 28 Jan 2022, 17:01

Re: Pre/Post Backup Events: Program exit status ignored

Post by pandergast »

Thanks for your reply!

What I've seen (I could be wrong) the same applies to Cobian Reflector?

So maybe you could consider it in a future version of Reflector?

Thanks,
pandergast
User avatar
cobian
Site Admin
Posts: 4611
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Pre/Post Backup Events: Program exit status ignored

Post by cobian »

I'll see what can be done.
--
Luis Cobian
Cobian Backup's creator
Post Reply