# Auto Run Application

**URL:** <https://www.wago.community/t/auto-run-application/2938>\
**Category:** CODESYS\
**Tags:** pfc100, codesys, libraries\
**Created:** [October 29, 2026, 3:32pm UTC](https://www.wago.community/t/auto-run-application/2938 "2026-10-29T15:32:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ValiantSailor](https://avatars.discourse-cdn.com/v4/letter/v/bb73d2/32.png) [@ValiantSailor](https://www.wago.community/u/ValiantSailor)\
**Post date:** [October 29, 2026, 3:32pm UTC](https://www.wago.community/t/auto-run-application/2938/1 "2026-10-29T15:32:58Z")

</div>

Hej,  
I am trying to write a code to auto restart the application after cold restart. I cannot find a command for this in the libraries and was therefore trying to use startprg shell command, but this does not work either. Anyone, who has done this before?

---

<div class="post-metadata">

**Author:** ![RobPaq](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@RobPaq](https://www.wago.community/u/RobPaq)\
**Post date:** [November 4, 2026, 9:57am UTC](https://www.wago.community/t/auto-run-application/2938/2 "2026-11-04T09:57:01Z")

</div>

Hello,  
I’ve not tried it but you could try to use the system events, “DownloadDone”  
To start the app there is a lib WagoAppControl which could help.  
This is the easiest solution, i could think of but you need to test it to be sure it can be done this way.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/b/b2886a6ed3c0855d1785f0b292be99c82c44ec3a.png)

---

<div class="post-metadata">

**Author:** ![ValiantSailor](https://avatars.discourse-cdn.com/v4/letter/v/bb73d2/32.png) [@ValiantSailor](https://www.wago.community/u/ValiantSailor)\
**Post date:** [November 9, 2026, 3:32pm UTC](https://www.wago.community/t/auto-run-application/2938/4 "2026-11-09T15:32:34Z")

</div>

Hej Rob,  
Sorry for the late reply. Thanks for the hint. See below solution. I tested it and it works like a charm. Just requires a bit of battling around with the libraries.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/1/1dcb8ddcdfeee7f7506a2e33781431c3a60d42bb.png)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/b/ba823b2680e3d02ce0d7e8378b6b8487f890846a.png)
