# System.util.execute() does not work when executing .bat

**URL:** <https://forum.inductiveautomation.com/t/system-util-execute-does-not-work-when-executing-bat/79074>\
**Category:** Ignition\
**Created:** [September 13, 2023, 12:55pm UTC](https://forum.inductiveautomation.com/t/system-util-execute-does-not-work-when-executing-bat/79074 "2023-09-13T12:55:46Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [September 13, 2023, 1:10pm UTC](https://forum.inductiveautomation.com/t/system-util-execute-does-not-work-when-executing-bat/79074/6 "2023-09-13T13:10:00Z")

</div>

I run a batch file like so with system.util.execute - `system.util.execute(['C:\\BackupFiles\\DeleteBackup.bat'])` I just call the batch directly, no preceding arguments required. This one runs on my GW as well and does similar to yours, deletes old files. What if you try it this way?

---

_[View the full topic](https://forum.inductiveautomation.com/t/system-util-execute-does-not-work-when-executing-bat/79074)._
