-
Find Dialog - Set the "Look In" path.....
I can use ShellExecute to set the look in path on the Find Files Dialog, but
I can't set it to either the "My Computer" item, or the "Local hard drives"
item. I tried passing it index values, CLSIDS, all manner of strings, i.e.
"C:\,D:\" "C:,D:" "(C:;D " "C:;D:" "Local hard drives" e.t.c e.t.c But
(obviously) I can't find the way....Any help may prevent hair loss - Thanks
heres the code im using (without decs as i'm sure you've all seen this before)
Debug.Print ShellExecute(Me.hwnd, _
"find", _
"(C:;D " & vbNullChar, _
vbNullString, _
vbNullString, _
SW_SHOWNORMAL)
-
Re: Find Dialog - Set the "Look In" path.....
Crispin,
Didn't check it, but have you tried separating elements with a null
(Chr$(0)) character? If you do that, also add two nulls to the end of the
string.
Some APIs work like that.
--
.. . . . . . . . . . . . . . . . . . . . . .
Klaus H. Probst, MVP
http://www.vbbox.com/
Please post/reply to the newsgroup(s)
"Crispin Wright" <crispin@freediver.co.uk> wrote in message
news:3b85277c$1@news.devx.com...
>
> I can use ShellExecute to set the look in path on the Find Files Dialog,
but
> I can't set it to either the "My Computer" item, or the "Local hard
drives"
> item. I tried passing it index values, CLSIDS, all manner of strings,
i.e.
> "C:\,D:\" "C:,D:" "(C:;D " "C:;D:" "Local hard drives" e.t.c e.t.c But
> (obviously) I can't find the way....Any help may prevent hair loss -
Thanks
> heres the code im using (without decs as i'm sure you've all seen this
before)
>
> Debug.Print ShellExecute(Me.hwnd, _
> "find", _
> "(C:;D " & vbNullChar, _
> vbNullString, _
> vbNullString, _
> SW_SHOWNORMAL)
>
>
-
Re: Find Dialog - Set the "Look In" path.....
Crispin,
Didn't check it, but have you tried separating elements with a null
(Chr$(0)) character? If you do that, also add two nulls to the end of the
string.
Some APIs work like that.
--
.. . . . . . . . . . . . . . . . . . . . . .
Klaus H. Probst, MVP
http://www.vbbox.com/
Please post/reply to the newsgroup(s)
"Crispin Wright" <crispin@freediver.co.uk> wrote in message
news:3b85277c$1@news.devx.com...
>
> I can use ShellExecute to set the look in path on the Find Files Dialog,
but
> I can't set it to either the "My Computer" item, or the "Local hard
drives"
> item. I tried passing it index values, CLSIDS, all manner of strings,
i.e.
> "C:\,D:\" "C:,D:" "(C:;D " "C:;D:" "Local hard drives" e.t.c e.t.c But
> (obviously) I can't find the way....Any help may prevent hair loss -
Thanks
> heres the code im using (without decs as i'm sure you've all seen this
before)
>
> Debug.Print ShellExecute(Me.hwnd, _
> "find", _
> "(C:;D " & vbNullChar, _
> vbNullString, _
> vbNullString, _
> SW_SHOWNORMAL)
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks