# 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:** 6

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [December 19, 2024, 2:59pm UTC](https://forum.inductiveautomation.com/t/prompt-user-to-select-folder/100012/6 "2024-12-19T14:59:42Z")

</div>

Thanks. The `JFileChooser` is exactly what I needed

> [@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)._
