# FILEDIALOG - How to Select Folder

**URL:** <https://clarionhub.com/t/filedialog-how-to-select-folder/8110>\
**Category:** questions\
**Tags:** language\
**Created:** [April 22, 2025, 2:17am UTC](https://clarionhub.com/t/filedialog-how-to-select-folder/8110 "2025-04-22T02:17:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff.Mason](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/ccd318/32.png) [@Jeff.Mason](https://clarionhub.com/u/Jeff.Mason)\
**Post date:** [April 22, 2025, 2:17am UTC](https://clarionhub.com/t/filedialog-how-to-select-folder/8110/1 "2025-04-22T02:17:03Z")

</div>

IF FILEDIALOG('Select the Base Directory', Base\_Folder, FILE:Directory)  
END  
I would expect it to allow me to select a folder, but does not.  
What are the flags referred to in the help?

---

<div class="post-metadata">

**Author:** ![xxetfxx](https://clarionhub.com/user_avatar/clarionhub.com/xxetfxx/32/5215_2.png) [@xxetfxx](https://clarionhub.com/u/xxetfxx)\
**Post date:** [April 22, 2025, 2:31am UTC](https://clarionhub.com/t/filedialog-how-to-select-folder/8110/2 "2025-04-22T02:31:38Z")

</div>

I think your parameter is incomplete, you should try this instead

```auto
IF FILEDIALOG(‘Select the Base Directory’, Base_Folder, '*.*',FILE:Directory)
END

```

---

<div class="post-metadata">

**Author:** ![Rick\_UpperPark](https://clarionhub.com/user_avatar/clarionhub.com/rick_upperpark/32/346_2.png) [@Rick\_UpperPark](https://clarionhub.com/u/Rick_UpperPark)\
**Post date:** [April 22, 2025, 1:48pm UTC](https://clarionhub.com/t/filedialog-how-to-select-folder/8110/3 "2025-04-22T13:48:36Z")

</div>

Also, I strongly suggest adding File:LongName and File:KeepDir (unless you want to change your programs current path).
