I have an application that executes 5 external commands via the shell function. There are times where a command can take 5 seconds to open and close, and sometimes 5 minutes.
When executing the commands via the shell function, I have specified the wait option with a -1 timeout. I don't want the 5 commands to execute at the same time, or even overlap.
Prior to each shell command executing, I issue the ProgressBar.PerformStep() function to advance the bar. Ultimatly, there would be five steps to fill the entire progress bar.
My issue is that when one of the commands takes more than about 5 seconds, the windows app goes to "Not Responding" and the progress bar then doesn't advance, until after the 5th shell process is complete and the bar steps from nothing to 100% instantly.
Is there something I need to put between the progress bar step and the next shell execution that will allow the shell function to return control back to the app long enough for the progress bar the advance prior to executing the next shell command?
Any advice would be appreciated!
When executing the commands via the shell function, I have specified the wait option with a -1 timeout. I don't want the 5 commands to execute at the same time, or even overlap.
Prior to each shell command executing, I issue the ProgressBar.PerformStep() function to advance the bar. Ultimatly, there would be five steps to fill the entire progress bar.
My issue is that when one of the commands takes more than about 5 seconds, the windows app goes to "Not Responding" and the progress bar then doesn't advance, until after the 5th shell process is complete and the bar steps from nothing to 100% instantly.
Is there something I need to put between the progress bar step and the next shell execution that will allow the shell function to return control back to the app long enough for the progress bar the advance prior to executing the next shell command?
Any advice would be appreciated!