Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.scripting.vbscript > #12199 > unrolled thread

Start a search dialog with fields (filemasks, text, folder) filled in ?

Started by"R.Wieser" <address@not.available>
First post2019-09-17 10:15 +0200
Last post2019-09-18 16:46 +0200
Articles 8 — 3 participants

Back to article view | Back to microsoft.public.scripting.vbscript


Contents

  Start a search dialog with fields (filemasks, text, folder) filled in ? "R.Wieser" <address@not.available> - 2019-09-17 10:15 +0200
    Re: Start a search dialog with fields (filemasks, text, folder) filled in ? JJ <jj4public@vfemail.net> - 2019-09-17 20:41 +0700
      Re: Start a search dialog with fields (filemasks, text, folder) filled in ? "R.Wieser" <address@not.available> - 2019-09-17 17:41 +0200
        Re: Start a search dialog with fields (filemasks, text, folder) filled in ? "R.Wieser" <address@not.available> - 2019-09-17 18:06 +0200
          Re: Start a search dialog with fields (filemasks, text, folder) filled in ? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-09-18 00:22 +0200
            Re: Start a search dialog with fields (filemasks, text, folder) filled in ? "R.Wieser" <address@not.available> - 2019-09-18 08:05 +0200
              Re: Start a search dialog with fields (filemasks, text, folder) filled in ? JJ <jj4public@vfemail.net> - 2019-09-18 17:39 +0700
                Re: Start a search dialog with fields (filemasks, text, folder) filled in ? "R.Wieser" <address@not.available> - 2019-09-18 16:46 +0200

#12199 — Start a search dialog with fields (filemasks, text, folder) filled in ?

From"R.Wieser" <address@not.available>
Date2019-09-17 10:15 +0200
SubjectStart a search dialog with fields (filemasks, text, folder) filled in ?
Message-ID<qlq4n8$1k74$1@gioia.aioe.org>
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


[toc] | [next] | [standalone]


#12201

FromJJ <jj4public@vfemail.net>
Date2019-09-17 20:41 +0700
Message-ID<15s1n8xwagnaq.1fx2yr8xxaj00$.dlg@40tude.net>
In reply to#12199
On Tue, 17 Sep 2019 10:15:19 +0200, R.Wieser wrote:
> 
> 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

Nope. But for Windows XP, you can get the same result by using predefined
*.fnd file - a saved search result file.

[toc] | [prev] | [next] | [standalone]


#12203

From"R.Wieser" <address@not.available>
Date2019-09-17 17:41 +0200
Message-ID<qlqur6$1hpb$1@gioia.aioe.org>
In reply to#12201
JJ,

> But for Windows XP, you can get the same result by using
> predefined *.fnd file - a saved search result file.

I was not aware that that existsted, but its something to look at.  Who 
knows, maybe I can generate one on the fly.   Thanks for mentioning it.

Regards,
Rudy Wieser

[toc] | [prev] | [next] | [standalone]


#12204

From"R.Wieser" <address@not.available>
Date2019-09-17 18:06 +0200
Message-ID<qlr09l$1otv$1@gioia.aioe.org>
In reply to#12203
"R.Wieser" <address@not.available> wrote in message 
news:qlqur6$1hpb$1@gioia.aioe.org...
> JJ,
>
>> But for Windows XP, you can get the same result by using
>> predefined *.fnd file - a saved search result file.

Scratch that: A saved search that is reloaded doesn't remember its starting 
folder.  Looking in the file I also do not see a path, and nothing stands 
out as a GUID either.

Regards,
Rudy Wieser


[toc] | [prev] | [next] | [standalone]


#12205

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2019-09-18 00:22 +0200
Message-ID<XnsAACE3BECE839eejj99@194.109.6.166>
In reply to#12204
"R.Wieser" <address@not.available> wrote on 17 Sep 2019 in
microsoft.public.scripting.vbscript: 

> "R.Wieser" <address@not.available> wrote in message 
> news:qlqur6$1hpb$1@gioia.aioe.org...
>> JJ,
>>
>>> But for Windows XP, you can get the same result by using
>>> predefined *.fnd file - a saved search result file.
> 
> Scratch that: A saved search that is reloaded doesn't remember its
> starting folder.  Looking in the file I also do not see a path, and
> nothing stands out as a GUID either.

Will this help?

<https://fileinfo.com/extension/fnd>

<https://fileinfo.com/extension/search-ms>
<https://www.howtogeek.com/howto/5316/how-to-save-searches-in-windows-7/>

Seems to work fine in W10


-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#12208

From"R.Wieser" <address@not.available>
Date2019-09-18 08:05 +0200
Message-ID<qlshg9$k5f$1@gioia.aioe.org>
In reply to#12205
Evertjan,

> Will this help?
>
> <https://fileinfo.com/extension/fnd>

Yup, I found that page too.   It contains nothing about the files internal 
make up though.

Remarkable, but I've not been able to google anything pertinent to the .FND 
filetype ... :-(

> <https://fileinfo.com/extension/search-ms>
> <https://www.howtogeek.com/howto/5316/how-to-save-searches-in-windows-7/>

Shucks.  I should have mentioned (in my initial message) that I'm using 
XP(sp3). Sorry.

Thanks for the suggestions though.

Regards,
Rudy Wieser

[toc] | [prev] | [next] | [standalone]


#12211

FromJJ <jj4public@vfemail.net>
Date2019-09-18 17:39 +0700
Message-ID<yz99frs0ztl8.13fj3ktgqz4at.dlg@40tude.net>
In reply to#12208
On Wed, 18 Sep 2019 08:05:21 +0200, R.Wieser wrote:
> 
> Yup, I found that page too.   It contains nothing about the files internal 
> make up though.
> 
> Remarkable, but I've not been able to google anything pertinent to the .FND 
> filetype ... :-(

Good thing I have one archived. I knew I've read it somewhere. It's an RTF
document, if you don't mind. It was for Windows 9x's FND. Some of the header
field values for XP's FND are different, but the layout and the search
fields seems to be the same.

https://pastebin.com/84JNssqX

[toc] | [prev] | [next] | [standalone]


#12215

From"R.Wieser" <address@not.available>
Date2019-09-18 16:46 +0200
Message-ID<qltfv9$15gd$1@gioia.aioe.org>
In reply to#12211
JJ,

> Good thing I have one archived. I knew I've read it somewhere. It's an RTF
> document, if you don't mind. It was for Windows 9x's FND. Some of the 
> header
> field values for XP's FND are different, but the layout and the search
> fields seems to be the same.
>
> https://pastebin.com/84JNssqX

Thanks very much!  Its lots more than currently have - which is, apart from 
a hexdump of a .FNDfile nothing :-)

Regards,
Rudy Wieser

[toc] | [prev] | [standalone]


Back to top | Article view | microsoft.public.scripting.vbscript


csiph-web