Archive: DirRequest only with local drives?


DirRequest only with local drives?
Hi,

i've created a custom page via installoptions using the dirrequest control. Is there a way only to show local drives (no Network and exchangeable/removeable Disks)?

Bye


Could Root to be a work around this?

Used by DirRequest controls to specify the root directory of the search. By default, this allows the user to browse any directory on the computer. This will limit the search to a particular directory on the system.

Unfortunaly not, cause if there are 2 Drives (e.g. C:\and D:\ are installed on the System i would not be able to select D:\ as a destiation if i'd configurd C:\ as Root.


So ... does anybody know if it's possible with InstallOptions or maybe can i call a Windows System Dialog as a workaround?


As far as I know, that's not possible with SHBrowseForFolder and therefore not possible with InstallOptions.

ROOT allows you to set virtual folders as roots as well, so there might be some virtual folder for local drives that I do not know of. For example, ::{20D04FE0-3AEA-1069-A2D8-08002B30309D} is My Computer.

The simplest solution I can suggest is verifying the user's selection in the leave function.


what about this:

BIF_RETURNONLYFSDIRS
Only return file system directories. If the user selects folders that are not part of the file system, the OK button is grayed.
http://msdn.microsoft.com/library/de...browseinfo.asp

That's already used by default and doesn't limit the selection of files under network or removable drives.


Thx for the replies ... i think i will do the check within the leave function as suggested by kichik. However this would may be a useful feature in future!