WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: oradba4u on December 28, 2021, 08:18:45 PM

Title: List specific file types from FILELISTBOX control
Post by: oradba4u on December 28, 2021, 08:18:45 PM
All:
I'd like to list only specific file types (i.e. *.txt) instead of all files in GetDir() in my Dialog Box. Is this possible? Am I using the wrong control?

Thanks in advance

Title: Re: List specific file types from FILELISTBOX control
Post by: stanl on December 29, 2021, 02:36:03 AM
maybe askfilename()
Title: Re: List specific file types from FILELISTBOX control
Post by: JTaylor on December 29, 2021, 06:16:19 AM
If you look up FileListBox Control in the Help file and read that top section,  assuming I understand,  I think that answers the question.

Jim
Title: Re: List specific file types from FILELISTBOX control
Post by: td on December 29, 2021, 07:17:04 AM
If the OP is referring to the FileListBox control used in WIL dialogs, the following Consolidated WIL Help file topic explains how to specify a file mask for the control.

https://docs.winbatch.com/mergedProjects/WinBatch/WINBATCH_FL_001.htm (https://docs.winbatch.com/mergedProjects/WinBatch/WINBATCH_FL_001.htm)