I am trying to execute three batch files through VB application as given below
Task1 = Shell("\\..\..\" & "softwaresetup.bat", vbHide)
Task2 = Shell("\\..\..\" & "packagesetup.bat", vbHide)
Task3 = Shell("\\..\.." & "serviceupdate.bat", vbHide)
Task1 takes about say x minutes minutes, Task2 takes Y minutes and Task3 takes Z min. Problem I have is, Task2 gets started even before completing the Task1 and I don't want that as both tasks display some common screens and it makes difficult to understand which screen belongs to which task.
How can i know whether task1 has completed succesfully?
Is there anyway I can control the execution of Task2 and Task3. I want these tasks to execute only when the prior task is completed?
Task1 = Shell("\\..\..\" & "softwaresetup.bat", vbHide)
Task2 = Shell("\\..\..\" & "packagesetup.bat", vbHide)
Task3 = Shell("\\..\.." & "serviceupdate.bat", vbHide)
Task1 takes about say x minutes minutes, Task2 takes Y minutes and Task3 takes Z min. Problem I have is, Task2 gets started even before completing the Task1 and I don't want that as both tasks display some common screens and it makes difficult to understand which screen belongs to which task.
How can i know whether task1 has completed succesfully?
Is there anyway I can control the execution of Task2 and Task3. I want these tasks to execute only when the prior task is completed?