RunLater program
The
RunLater.exe program serves for launching programs with a time delay. It can be used for launching the PROMOTIC applications.
The program is located in the
\Promotic\Tools folder.
Calling:
Parameters:
/t - time delay of launching in seconds
/f - path and name of the running application
/p - parameters passed into the running application (is meaningful only if the running application represents an executable program EXE)
Notes:
- The RunLater program can be launched multiply. It means that multiple instances of this program can run on one computer simultaneously.
The
RunLater program can be used, for example, in the following cases:
1) If the PROMOTIC application is launched automatically after switching on the computer, it allows 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 reference is placed into the Windows folder Start Up instead of the shortcut to the PROMOTIC application and the parameters of the RunLater program are set as the application reference parameters.
2) It allows to
restart 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.AppStop method (see
Example2).