Discussion:
Multiple file selector?
(too old to reply)
JJ
2019-04-30 20:41:41 UTC
Permalink
I'm in need of a file selector UI for selecting multiple files. Basically an
Open File dialog which is configured to allow multiple selections.

But because I'm in Win7, the code which uses the "UserAccounts.CommonDialog"
object no longer work because that object is provided by NUSRMGR.CPL which
is no longer available since Vista.

The other code which uses the "MSComDlg.CommonDialog", although still
usable, it uses COMDLG32.OCX which is not available in every Windows
installations. Moreover, because there's no 64-bit version of that library,
it can't be used to select files in the SYSTEM32 directory of 64-bit
Windows.

My current workaround is to use the Explorer window via "Shell.Application"
object. It works, but it just doesn't look right.

I also thought about using Internet Explorer object in a HTA file (i.e.
embedded ShellFolderView), but it only shows the folder view. There's no UI
to navigate to other directory/drive.

So, anyone know another way to provide a multiple file selector UI which is
guaranteed to work on all 64-bit Windows installations without requiring to
download anything? And without using PowerShell.
Mayayana
2019-04-30 21:21:55 UTC
Permalink
"JJ" <***@vfemail.net> wrote

| I'm in need of a file selector UI for selecting multiple files. Basically
an
| Open File dialog which is configured to allow multiple selections.
|


https://www.jsware.net/jsware/scrfiles.php5#classpk

HTMLDlgHelper
Doesn't exactly answer your question. I don't think it
can open multiple. It doesn't have a flags parameter
like the system comdlg. But it seems to be on all systems
and aside from lacking flag options it's a standard system
dialogue.
See the Dialogs and Font Enum subfolder in the download.
It's an ActiveX that sits on a webpage, but one of the
samples shows a way to use it from a VBS.
JJ
2019-05-01 13:26:43 UTC
Permalink
Post by Mayayana
https://www.jsware.net/jsware/scrfiles.php5#classpk
HTMLDlgHelper
Doesn't exactly answer your question. I don't think it
can open multiple. It doesn't have a flags parameter
like the system comdlg. But it seems to be on all systems
and aside from lacking flag options it's a standard system
dialogue.
See the Dialogs and Font Enum subfolder in the download.
It's an ActiveX that sits on a webpage, but one of the
samples shows a way to use it from a VBS.
Bummer.

Well, at least there's a proper and reliable way to select a single file.
Continue reading on narkive:
Loading...