How to wait after starting a program before starting the next program

10/08/2018 Stuart Moore   ID: 333562

If you require two programs to start in a particular order, the attribute Order is used to specify the start order. If you need to introduce a wait before you start the next program then the WaitCondition element, with an attribute TimeoutInSeconds will delay the start-up of the next program. 

<WaitCondition TimeoutInSeconds="t">Always</WaitCondition>

Example

To start notepad.exe, and delay the start of the next application, nextapp.exe, by 2 seconds add  <WaitCondition TimeoutInSeconds="2">Always</WaitCondition>

<Program Order="0"> 
   <Path>c:\windows\system32\notepad.exe</Path> 
   <Args>
   </Args> 
   <WorkingDirectory/>
   <RunCondition>Always</RunCondition>
   <ProcessWindowStyle>Normal</ProcessWindowStyle> 
   <WaitCondition TimeoutInSeconds="2">Always</WaitCondition>
 </Program>

<Program Order="1"> 
   <Path>c:\windows\system32\nextapp.exe</Path> 
   <Args>
   </Args> 
   <WorkingDirectory/>
   <RunCondition>Always</RunCondition>
   <ProcessWindowStyle>Normal</ProcessWindowStyle> 
</Program>


Applies To

Cloudhouse Containers 4.5.1808


Source:
Was this article helpful?

Table of Contents

    Can't find what you're looking for?

    Contact Support