Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Oct : Select directory which must contain a certain file

www.cryer.info
Managed Newsgroup Archive

Select directory which must contain a certain file

Subject:Select directory which must contain a certain file
Posted by:"willem van deursen" (x..@xxx.nl)
Date:Wed, 17 Oct 2007 10:59:01

Hello group,

I am looking for a dialog that allows the user to select a certain
folder only if it contains a specific file. I was looking into two
solutions:
-Either use the standard OpenDialog and prevent the user from changing
the filename
-Or use the SelectDirectory function and prevent the user from closing
the dialog if the specific file doesn't exist in the selected folder.

Both solutions require quite some programming. Does anyone have a better
solution?

Thanks

Willem
--
Willem van Deursen, The Netherlands
wvandeursen_nospam@nospam_carthago.nl
replace _nospam@nospam_ for @ to get a valid email address
www.carthago.nl

Replies:

www.cryer.info
Managed Newsgroup Archive