in reply to Win32::GUI multi-file selection

The standard Windows Common dialog control supports selecting multiple files. This is documented at this msdn URL.

I have not attempted to call a com object via perl, but I imagine this should be fairly straightforward using one of the OLE moldules.

For this functionality, I would suggest using the above MSDN method in preference to Win32::GUI with custom code because it is probably much easier, and a lot more standard.

Replies are listed 'Best First'.
Re2: (Win32::FileOp) Win32::GUI multi-file selection
by bbfu (Curate) on Sep 08, 2003 at 05:50 UTC

    Ideally, I would like to use just one dialog for selecting both files and directories. Unfortunately, it appears that SHBrowseForFolder doesn't support selecting multiple files / directories, and GetOpenFilename doesn't support selecting folders (both at the system level). So it seems I'll have to use two different dialogs if I want to use the standard Windows dialogs. :(

    On a related note, I discovered that Win32::FileOp seems to allow access to the multiple-file selection ability of the OpenDialog, among many other nice and useful features. We should all thank Jenda for the very nice module. :)

    bbfu
    Black flowers blossom
    Fearless on my breath