> How can I start Explorer at "Desktop" / "My Computer" / "My Network" with
> ShellExecute[Ex] API ?
> Can I call the file/folder context-menu(=right klick on file/folder in
> explorer) with this API ?
>
> Matthias
You can send the directory path as parameter when you start Explorer.
So the function will look like this:
'----------------------------------------
Private Declare Function ShellExecute Lib "shell32.dll" Alias
"ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal
lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String,
ByVal nShowCmd As Long) As Long
Private Sub cmdOpen_Click()
ShellExecute Me.hwnd, "Open", "Explorer", "C:\windows", "", 1
End Sub
'----------------------------------------
I don't know if you can call the file/folder context-menu with this API.
Reinier