Batch Jobs & User Interface

  • Thread starter Thread starter Yog
  • Start date Start date
Y

Yog

Its weird, but there is a requirement to be able to run a batch job from a
user interface. The job may run from mins to hrs depending on data. I am
looking for any guidelines for such kind of UI. Thanks for any advise.

Yog
 
Definitely use threads to spawn your external processes.

Here are some questions that you might ask yourself.

1) Does the UI need to stay open when the batch file is running? What
happens when the UI is terminated by a user and the batch file is not yet
finished?
2) Does the UI need to report progress to the user? How does the batch
file provide this progress to the code, if necessary?
3) Will a single UI be able to run more then on concurrent batch job?
4) What type of "batch" are we talking about, the .BAT that the OS support
or the jobs in SqlServer?
 
Back
Top