Login | |
|
 |
Re: select directory box - 6/9/2005 9:50:55 PM
|
|
 |
|
| |
Zifter
Posts: 318
Score: 0
Joined: 1/5/2005
From: Belgium
Status: offline
|
If you want to search for a particular file somewhere on the computer, you better use a FileSystemObject or a WMI query. This dialog is used to give a user the ability the select a file from his/her computer, not to search for files. The filter property of the dialog is used to make it easier for the user to find a specific type of file. If you want to filter for files starting with an "A", you could use this: objDialog.Filter = "Files starting with A|A*.*" HTH
|
|
| |
|
|
|
 |
Re: select directory box - 6/10/2005 12:00:04 AM
|
|
 |
|
| |
Zifter
Posts: 318
Score: 0
Joined: 1/5/2005
From: Belgium
Status: offline
|
The dialog is not designed to search for files. It is designed to let a user select a file. The filter property and the initialdir property are there to make it easier for the user to find the file he/she wants to select, not for searching for a file. If you want to search for a file, you can use the FileSystemObject to iterate through each folder and check each file if it meets your search requirements.
|
|
| |
|
|
|
|
|