ralph
6/15/2011 2:34:00 AM
On Tue, 14 Jun 2011 21:24:36 -0400, "Nobody" <nobody@nobody.com>
wrote:
>ralph wrote:
>> On Tue, 14 Jun 2011 15:07:30 -0700, BeeJ <nospam@spamfree.com> wrote:
>>
>>> so how does windows find an executable if all it has is the app.exe
>>> or app.com name the way that Run or whatever does? If indexing is
>>> off on a drive it can't use that. I have tried doing a Run on a
>>> drive that is not indexed and it finds it very quickly for
>>> "installed" apps. What method is it using? for apps that are copied
>>> and "registered" it finds those too.
>>>
>>
>> Look up the "Path evnvironmental variable" online, or Windows help.
>
>Actually there is a simple API function for this, SearchPath().
>
As SearchPath() uses either a given path, or the default Path as given
in the Registry as a reflection of the Path Environment variable, and
the OP was asking for the "method" used, I felt it would be better to
go direct to the "source" and hopefully skip subsequent questions.
We'll know soon enough. <g>
-ralph