Private Sub Command1_Click() Shell "explorer c:", 1 End Sub
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 Sub opendir(ByVal dirpath As String) ShellExecute hwnd, "open", dirpath, vbNullString, vbNullString, 5 End Sub Private Sub Command1_Click() Call opendir("c:\windows\system\") End Sub
Shell "explorer c:", 1
End Sub
Sub opendir(ByVal dirpath As String)
ShellExecute hwnd, "open", dirpath, vbNullString, vbNullString, 5
End Sub
Private Sub Command1_Click()
Call opendir("c:\windows\system\")
End Sub