# System.util.execute in a tags

**URL:** <https://forum.inductiveautomation.com/t/system-util-execute-in-a-tags/20841>\
**Category:** Ignition\
**Created:** [November 14, 2018, 10:32am UTC](https://forum.inductiveautomation.com/t/system-util-execute-in-a-tags/20841 "2018-11-14T10:32:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giuseppe.mollica](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@Giuseppe.mollica](https://forum.inductiveautomation.com/u/Giuseppe.mollica)\
**Post date:** [November 14, 2018, 10:32am UTC](https://forum.inductiveautomation.com/t/system-util-execute-in-a-tags/20841/1 "2018-11-14T10:32:24Z")

</div>

Goodmorning everyone  
I have a problem with the “system.util.execute” command because I inserted this code in the editor script of the actionperformed , button: “system.util.execute ([” C: /windows/system32/cmd.exe “,” / C ", “start”, “C: \ WinSCP \ SyncToLocalScript.bat”]) "and everything works perfectly  
but I need this code to start automatically once a day and write it in the value Events section of a tag this: “if currentValue.value == 1: system.util.execute ([” C: \ windows \ system32 \ cmd.exe “,” / C “,” start “,” C: \ WinSCP \ SyncToLocalScript.bat "]) but it does not work where I’m wrong  
thanks for the help

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [November 14, 2018, 1:02pm UTC](https://forum.inductiveautomation.com/t/system-util-execute-in-a-tags/20841/2 "2018-11-14T13:02:53Z")

</div>

Tag scripts run on the gateway. The batch file (and everything the batch executes) must also be on the gateway.

---

<div class="post-metadata">

**Author:** ![Giuseppe.mollica](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@Giuseppe.mollica](https://forum.inductiveautomation.com/u/Giuseppe.mollica)\
**Post date:** [November 14, 2018, 1:13pm UTC](https://forum.inductiveautomation.com/t/system-util-execute-in-a-tags/20841/3 "2018-11-14T13:13:28Z")

</div>

So where should I enter the command to execute in command system.util.execute?  
I tried to insert it in the event scripts gateway, but it does not work
