# Which Clarion 6.3 template looks up a DOS file or directory from a button?

**URL:** <https://forums.softvelocity.com/t/which-clarion-6-3-template-looks-up-a-dos-file-or-directory-from-a-button/1582>\
**Category:** Knowledge Base\
**Tags:** templates, unverified\
**Created:** [November 9, 2026, 11:34am UTC](https://forums.softvelocity.com/t/which-clarion-6-3-template-looks-up-a-dos-file-or-directory-from-a-button/1582 "2026-11-09T11:34:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rzaunere](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rzaunere](https://forums.softvelocity.com/u/rzaunere)\
**Post date:** [November 9, 2026, 11:34am UTC](https://forums.softvelocity.com/t/which-clarion-6-3-template-looks-up-a-dos-file-or-directory-from-a-button/1582/1 "2026-11-09T11:34:23Z")

</div>

**Applies to:** an app in Clarion 6.3, as the poster wrote it in the Clarion 6 group; the thread names no template chain.

**Problem**

The poster had to add a function to a Clarion 6.3 app and asked whether a template exists that looks up a DOS file or a directory on a button.

**Solution**

1. Use the DOS File Lookup control template. A reply pointed to the help topic "DOS File Lookup control template".
2. Or code it yourself: create a button, and in its TakeAccepted embed call FILEDIALOG with the bit pattern for a file, a directory, or both. A poster noted that this could be turned into a template.

The original poster thanked the repliers and said he would use them.

**Caveats**

- The thread says nothing about the outcome beyond the thanks.
- It does not give the FILEDIALOG flag values; they are in the help.
- Another entry in this area covers a file mask in the DOS File Lookup template.

**Today (2026)**

Likely unchanged: both the template and FILEDIALOG have been part of Clarion for a long time. Not re-tested.

**Sources:** Dan S. (Nov 2015, the question), John S. (Nov 2015), Lee W. (Nov 2015) in softvelocity.public.clarion6.
