# Programmatically enable/disable device connection

**URL:** <https://forum.inductiveautomation.com/t/programmatically-enable-disable-device-connection/79031>\
**Category:** Ignition\
**Created:** [September 12, 2023, 5:14pm UTC](https://forum.inductiveautomation.com/t/programmatically-enable-disable-device-connection/79031 "2023-09-12T17:14:56Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dick.willis](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@dick.willis](https://forum.inductiveautomation.com/u/dick.willis)\
**Post date:** [September 12, 2023, 6:29pm UTC](https://forum.inductiveautomation.com/t/programmatically-enable-disable-device-connection/79031/6 "2023-09-12T18:29:31Z")

</div>

Anybody got a good approach for parsing out a DeviceName from a tag's OPCItemPath? Looks like it is delimited with square-brackets ... I'll try something based on that definition.

nm: [Split Regex expression to get tag OPCItemPath 'Device' name - Ignition - Inductive Automation Forum](https://forum.inductiveautomation.com/t/split-regex-expression-to-get-tag-opcitempath-device-name/16425)

---

_[View the full topic](https://forum.inductiveautomation.com/t/programmatically-enable-disable-device-connection/79031)._
