R.Wieser
2019-09-17 08:15:19 UTC
Hello all,
I would like to start a file search dialog, but would like to have (some of)
the fields (filemasks, text, start folder) already filled in. The below
code will open the file search dialog, but with the filemask and text fields
empty, and wanting to look thru all attached drives.
set objShell = CreateObject("shell.application")
objShell.FindFiles
Even just having to change the "Look in:" starting point is way more of a
bother than using file explorer (which I normally already have open by than)
and open the search dialog from there. :-(
By the way, it does not even need to start the search (I would actually
prefer it doesn't)
tl;dr:
Is there a way to provide the above objShell.FindFiles object with
parameters or call methods to set the filemasks, text and/or folder fields.
Regards,
Rudy Wieser
I would like to start a file search dialog, but would like to have (some of)
the fields (filemasks, text, start folder) already filled in. The below
code will open the file search dialog, but with the filemask and text fields
empty, and wanting to look thru all attached drives.
set objShell = CreateObject("shell.application")
objShell.FindFiles
Even just having to change the "Look in:" starting point is way more of a
bother than using file explorer (which I normally already have open by than)
and open the search dialog from there. :-(
By the way, it does not even need to start the search (I would actually
prefer it doesn't)
tl;dr:
Is there a way to provide the above objShell.FindFiles object with
parameters or call methods to set the filemasks, text and/or folder fields.
Regards,
Rudy Wieser