# How may I rename folder with scripting functions?

**URL:** <https://forum.inductiveautomation.com/t/how-may-i-rename-folder-with-scripting-functions/50697>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [September 8, 2021, 7:09am UTC](https://forum.inductiveautomation.com/t/how-may-i-rename-folder-with-scripting-functions/50697 "2021-09-08T07:09:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![valverde.anthony](https://avatars.discourse-cdn.com/v4/letter/v/278dde/32.png) [@valverde.anthony](https://forum.inductiveautomation.com/u/valverde.anthony)\
**Post date:** [September 8, 2021, 7:09am UTC](https://forum.inductiveautomation.com/t/how-may-i-rename-folder-with-scripting-functions/50697/1 "2021-09-08T07:09:28Z")

</div>

Hello, I am having issues figuring out how to re-name a folder using the scripting functions.

I’ve attempted to use system.tag.move(), however, it created a child folder from the original folder name. Is this intentional or am I using the function incorrectly?

Also, I’ve attempted to use system.tag.getConfiguration, changing the name in the dictionary and applying changes with system.tag.configure. Anyone have any insight on this situation? It is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [September 8, 2021, 9:21am UTC](https://forum.inductiveautomation.com/t/how-may-i-rename-folder-with-scripting-functions/50697/2 "2021-09-08T09:21:40Z")

</div>

This should do it:  
[https://docs.inductiveautomation.com/display/DOC80/system.tag.rename](https://docs.inductiveautomation.com/display/DOC80/system.tag.rename)

```python
system.tag.rename("[]OldName", "NewName", 'a')

```

Worked for me

---

<div class="post-metadata">

**Author:** ![valverde.anthony](https://avatars.discourse-cdn.com/v4/letter/v/278dde/32.png) [@valverde.anthony](https://forum.inductiveautomation.com/u/valverde.anthony)\
**Post date:** [September 8, 2021, 7:13pm UTC](https://forum.inductiveautomation.com/t/how-may-i-rename-folder-with-scripting-functions/50697/3 "2021-09-08T19:13:31Z")

</div>

Of course there’s a function called system.tag.rename()… Thank you will try this solution and get back to you.
