# Is there a way I can list or access fileNames in a vision project from a script?

**URL:** <https://forum.inductiveautomation.com/t/is-there-a-way-i-can-list-or-access-filenames-in-a-vision-project-from-a-script/101985>\
**Category:** Ignition\
**Tags:** scripting, ignition81, vision\
**Created:** [February 6, 2025, 5:09pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-i-can-list-or-access-filenames-in-a-vision-project-from-a-script/101985 "2025-02-06T17:09:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spencer\_Lommel1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/spencer_lommel1/32/78679_2.png) [@Spencer\_Lommel1](https://forum.inductiveautomation.com/u/Spencer_Lommel1)\
**Post date:** [February 6, 2025, 5:09pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-i-can-list-or-access-filenames-in-a-vision-project-from-a-script/101985/1 "2025-02-06T17:09:40Z")

</div>

I want to create a dynamic docked window navigation bar that reads all windows in a path and then creates buttons for all of them. I am not sure how I can list all of the window paths within a given folder path though

I looked into `system.file` but that seems to only be for actual files on the machine itself not the ignition project.

So I want to be able to create something that reads the windows from here

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/8/f80b213342374d6bf02e5296205236bab93c2585.png)

and then creates a nav button similar to this (ignore the maintenance & outputs buttons)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/3/73da683ca3ec64e8e9198cca1ff322022889cc48.png)

I greatly appreciate any help and hope I explained my issue well enough 🙂

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 6, 2025, 5:24pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-i-can-list-or-access-filenames-in-a-vision-project-from-a-script/101985/2 "2025-02-06T17:24:40Z")

</div>

[`system.gui.getWindowNames`](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-gui/system-gui-getWindowNames) gives you _all_ window paths in the project - you could go through that list with scripting to pull out the ones in the folder you want pretty easily.

---

<div class="post-metadata">

**Author:** ![Spencer\_Lommel1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/spencer_lommel1/32/78679_2.png) [@Spencer\_Lommel1](https://forum.inductiveautomation.com/u/Spencer_Lommel1)\
**Post date:** [February 6, 2025, 7:34pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-i-can-list-or-access-filenames-in-a-vision-project-from-a-script/101985/3 "2025-02-06T19:34:17Z")

</div>

This worked, thank you!
