Before posting, and to avoid disappointment, please read the following:

  • This forum is not for 2BrightSparks to provide technical support. It's primarily for users to help other users. Do not expect 2BrightSparks to answer any question posted to this forum.
  • If you find a bug in any of our software, please submit a support ticket. It does not matter if you are using our freeware, a beta version or you haven't yet purchased the software. We want to know about any and all bugs so we can fix them as soon as possible. We usually need more information and details from you to reproduce bugs and that is better done via a support ticket and not this forum.

Profile to start after another is successfully finished

For technical support visit https://support.2brightsparks.com/
Post Reply
fabricio.santos
Newbie
Newbie
Posts: 1
Joined: Thu Oct 12, 2017 10:28 pm

Profile to start after another is successfully finished

Post by fabricio.santos »

Dear all,

Is it possible to configure a profile to be executed only after another one was completed successfully?

Thank you,

Fabrício
cliffhanger
Expert
Expert
Posts: 606
Joined: Tue May 31, 2011 5:59 pm

Re: Profile to start after another is successfully finished

Post by cliffhanger »

Not as a 'clickable option', no. But you can do it by chaining Profile-2 to be executed via Programs-Before > After of Profile-1, so that after Profile-1 completes, the Programs-Before > After setting in Profile-1 will execute Profile-2 by calling it on the command-line*. Programs-Before > After has a default setting which will abort running the command (to trigger Profile-2) if Profile-1 fails with any error. Of course, you need to ensure you do not enable the override setting "Run the program even if the profile fails", or you will neatly defeat your objective.

Note that doing this will launch a separate copy of SB to run Profile-2 (and that separate SB copy will close after completing that run). One more copy of SB in memory temporarily is unlikely to cause you problems, but it's not recommended to chain numerous multiple profiles this way. You can also chain a Group (e.g. to run Profile-2/3/4, by making/calling a Group to do just that) after Profile-1 has completed successfully, but you can't use this method to run profile-4 after a Group of profiles-(e.g. 1/2/3) all complete without error, because there is no Programs-Before > After section in a Group.


* tip to generate a correctly formatted command-line for use in Programs-Before > After: make a shortcut to Profile-2 (drag the 2nd profile to the desktop to create one); right-click shortcut > Properties, and Copy the internal command-string to the clipboard; switch back to SB > Modify view of Profile-1 and Paste the string into the edit box of Programs-Before > After. After successful testing, you can delete or retain the shortcut as you prefer. This tip also works with a Group.
cliffhanger
Expert
Expert
Posts: 606
Joined: Tue May 31, 2011 5:59 pm

Re: Profile to start after another is successfully finished

Post by cliffhanger »

Note: any chained profile (or Group) will by default run Unattended unless you edit the command-string to use CLI switches to modify that default behavior. Details in Help under Command Line Parameters (first few entries)
Post Reply