Using the following brief code snippet:
It opens the search dialog box in explorer at the spot I want it to just peachy.
But how do I pre-initialize the search parameters? The 4th option is supposed to be some kind of parameter list, but I could only find c++ documentation on msdn, and it didn't read like it was an option. I've tried a couple variations, but nothing seems to take. I hate the thoughts of using something like sendkeys. Not even sure if sendkeys can DTRT.
Any help appreciated.
A bit of additional info:
For a variety of poor reasons, some reports get dumped into a mishmash hierarchy of folders, but with consistent naming of the reports but inconsisten naming of the folders. So I want to just search with explorer, they can control-a/control-C/control-v them into their own working folder for further processing.
Code:
[COLOR=#00008B][FONT=Consolas]Option[/FONT][/COLOR][COLOR=#000000][FONT=Consolas] Explicit [/FONT][/COLOR]
<code style="margin: 0px; padding: 0px; border: 0px; font-size: 13.63636302948px; vertical-align: baseline; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; white-space: inherit; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"> [COLOR=#808080]'API declaration for the windows "Search Results" dialog
[/COLOR][COLOR=#00008B]Private[/COLOR] [COLOR=#00008B]Declare[/COLOR] [COLOR=#00008B]Function[/COLOR] ShellSearch& [COLOR=#00008B]Lib[/COLOR] [COLOR=#800000]"shell32.dll"[/COLOR] _
[COLOR=#00008B]Alias[/COLOR] [COLOR=#800000]"ShellExecuteA"[/COLOR] ([COLOR=#00008B]ByVal[/COLOR] hwnd [COLOR=#00008B]As[/COLOR] [COLOR=#00008B]Long[/COLOR], _
[COLOR=#00008B]ByVal[/COLOR] lpOperation [COLOR=#00008B]As[/COLOR] [COLOR=#00008B]String[/COLOR], _
[COLOR=#00008B]ByVal[/COLOR] lpFile [COLOR=#00008B]As[/COLOR] [COLOR=#00008B]String[/COLOR], [COLOR=#00008B]ByVal[/COLOR] lpParameters [COLOR=#00008B]As[/COLOR] [COLOR=#00008B]String[/COLOR], _
[COLOR=#00008B]ByVal[/COLOR] lpDirectory [COLOR=#00008B]As[/COLOR] [COLOR=#00008B]String[/COLOR], _
[COLOR=#00008B]ByVal[/COLOR] nShowCmd [COLOR=#00008B]As[/COLOR] [COLOR=#00008B]Long[/COLOR])
[COLOR=#00008B]Private[/COLOR] [COLOR=#00008B]Const[/COLOR] SW_SHOWNORMAL = [COLOR=#800000]1
[/COLOR][COLOR=#00008B]Sub[/COLOR] ShowWindowsSearchDialog_API()
[COLOR=#808080]' Specified drive to Search
[/COLOR] [COLOR=#00008B]Const[/COLOR] szSDrive [COLOR=#00008B]As[/COLOR] [COLOR=#00008B]String[/COLOR] = [COLOR=#800000]"C:\"
[/COLOR] ShellSearch [COLOR=#800000]0[/COLOR], [COLOR=#800000]"find"[/COLOR], szSDrive, [COLOR=#800000]""[/COLOR], [COLOR=#800000]""[/COLOR], SW_SHOWNORMAL
</code>[COLOR=#00008B][FONT=Consolas]End[/FONT][/COLOR][COLOR=#00008B][FONT=Consolas]Sub
[/FONT][/COLOR]
It opens the search dialog box in explorer at the spot I want it to just peachy.
But how do I pre-initialize the search parameters? The 4th option is supposed to be some kind of parameter list, but I could only find c++ documentation on msdn, and it didn't read like it was an option. I've tried a couple variations, but nothing seems to take. I hate the thoughts of using something like sendkeys. Not even sure if sendkeys can DTRT.
Any help appreciated.
A bit of additional info:
For a variety of poor reasons, some reports get dumped into a mishmash hierarchy of folders, but with consistent naming of the reports but inconsisten naming of the folders. So I want to just search with explorer, they can control-a/control-C/control-v them into their own working folder for further processing.