utility is used for launching programs with a time delay. It can be used for launching the PROMOTIC applications. The utility is located in the PROMOTIC system folder (e.g. C:\Pm
>RunLater /t=10 /f=C:\PmProj\Test.pra
>RunLater /t=10 /f=C:\Pm\Promotic.exe /p=C:\PmProj\Test.pra
/t - time delay in seconds
/f - path and name of the running application
/p - parameters passed to the running application (it is relevant only if the running application si an executable program EXE)
- There is an easier way of the PROMOTIC application delayed launch, by setting the key RtStartDelay in the application INI file
- The RunLater utility can be launched multiply, which means that multiple instances of this program can run on one computer simultaneously.
utility can be used for example in the following cases:
1) If the PROMOTIC application is launched automaticaly after switching on the computer, it can delay the start of the application by certain time (for the synchronization, while multiple applications are being launched simultaneously, for example server and client, or when experiencing problems with the HW key detection after the computer starts). The RunLater utility link is placed into the Windows folder Start Up instead of the shortcut to the PROMOTIC application and the parameters of the RunLater utility are set as the application reference parameters.
There is also a possibility of restarting
the PROMOTIC application with a safe delay directly from this running application, for example if a critical application error is detected. It is possible then to restart the application (itself) with a delay and then to stop the PROMOTIC application for example by the Pm.AppQuit
method (see Example