|
Option Explicit
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 Const SW_SHOWNORMAL = 1
Private Sub cmd_Suchen_Click()
On Error GoTo err_Handler
Dim strStartPath As String
strStartPath = Dir1.Path
ShellExecute Me.hwnd, "find", strStartPath, "", "C:\", _
SW_SHOWNORMAL
Exit Sub
err_Handler:
MsgBox "Es ist ein allgemeiner Fehler aufgetreten." & vbCrLf & _
vbCrLf & "Fehlernummer: " & Err.Number & vbCrLf & _
"Fehlerbeschreibung: " & Err.Description, vbOKOnly + _
vbCritical, "Allgemeiner Fehler"
End Sub
|
|