# Prompt User to Select Folder

**URL:** <https://forum.inductiveautomation.com/t/prompt-user-to-select-folder/100012>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [December 18, 2024, 10:31pm UTC](https://forum.inductiveautomation.com/t/prompt-user-to-select-folder/100012 "2024-12-18T22:31:49Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [December 18, 2024, 10:47pm UTC](https://forum.inductiveautomation.com/t/prompt-user-to-select-folder/100012/3 "2024-12-18T22:47:23Z")

</div>

Unless the nuance was to allow a directory _to be selected_, which we don't have a convenient helper for; you'll have to do some scripting.

Something like:

> [@Save selected files to a selected path keeping the original name](https://forum.inductiveautomation.com/t/save-selected-files-to-a-selected-path-keeping-the-original-name/68787/3):
>
> There's no system.file.saveDirectory function, so choosing a directory to save to gets a bit complicated. Once you have the directory, you should be able to use system.file.writeFile with a generated directory + filename path, and system.file.readFileAsBytes to read the source file(s), as needed. Choosing a directory with a GUI would look something like this: from javax.swing import JFileChooser fileChooser = JFileChooser() fileChooser.fileSelectionMode = JFileChooser.DIRECTORIES\_ONLY result…

---

_[View the full topic](https://forum.inductiveautomation.com/t/prompt-user-to-select-folder/100012)._
