|
-
Aug 23rd, 2001, 06:26 AM
#1
Thread Starter
Addicted Member
ShellExecute (One for the Guru's)
I'm using the ShellExecute API to show the Windows Find All Dialog.
(See http://support.microsoft.com/support...n_SRCH&SPR=VBB)
In Windows 2000 the Look In combo is defaulted to Local Harddrives.
How can I default the Lookin Combo to Local Harddrives?
Thanks in advance
-
Aug 23rd, 2001, 07:55 AM
#2
Fanatic Member
which drive did you want it to default to, I changed this code from :
Call ShellExecute(Me.hwnd, _
"find", _
dir1.path, _
vbNullString, _
vbNullString, _
SW_SHOWNORMAL)
to
Call ShellExecute(Me.hwnd, _
"find", _
"c:\", _
vbNullString, _
vbNullString, _
SW_SHOWNORMAL)
and this defaulted the find dialog to my c drive, I spose you could do a GetLogicalDriveStrings or something, filter out the fixed drives, and build a combo with only those in, and allow the user to select off the back of that....
Crispin
VB6 ENT SP5
VB.NET
W2K ADV SVR SP3
WWW.BLOCKSOFT.CO.UK
[Microsoft Basic: 1976-2001, RIP]
-
Aug 23rd, 2001, 07:56 AM
#3
Fanatic Member
Aha I get you now, you want it to default to all local hardrives - I'll plug my brain in a sec.....
be right back.....
Crispin
VB6 ENT SP5
VB.NET
W2K ADV SVR SP3
WWW.BLOCKSOFT.CO.UK
[Microsoft Basic: 1976-2001, RIP]
-
Aug 23rd, 2001, 08:13 AM
#4
Thread Starter
Addicted Member
Sorry crispin I should of explained it better, and yes you're right I want to default the Lookin Combo to All Local Harddrives.
-
Aug 24th, 2001, 05:36 AM
#5
Frenzied Member
Shell Execute
I would't use the ShellExecute function. I would look into the CreateProcess function as this allows far more control on what you are loading, and how it is loaded
-
Aug 24th, 2001, 05:56 AM
#6
Thread Starter
Addicted Member
How do I load and show the Find All dialog using the CreateProcess API yrwyddfa?
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
|
Click Here to Expand Forum to Full Width
|