0

I have three c# console application (Batch Job).

   1. Batch A
   2. Batch B
   3. Batch C

Batch B should be executed once Batch A is done, and Batch C should be executed once batch B is done. Right now i have scheduled in Windows scheduler by fixing time. Is there any way to automate this.

Basically I am looking for one Job to be scheduled which will invoke all above three jobs one by one. Please give me your suggestions.

sk7730
  • 636
  • 3
  • 9
  • 32

1 Answers1

0

Instead of executing 3 batch files from your C# app consider launching StartBats.bat from C#. Make StartBats.bat launch Batch A, Batch B and Batch C. This will also make it easier for you to add Batch D, etc in the future if need be.

RGuggisberg
  • 4,630
  • 2
  • 18
  • 27
  • foreach (file in files.bat) {do stuff} isn't all that much different or more complex and does the same thing while addressing the question directly... – Austin T French Dec 23 '14 at 05:33