1 2 3 4 5 6 7 8 9 10 11 12 13
| Private Sub ErrMedia_DblClick(Cancel As Integer)
Dim ret As Long, mediaPath As String, strShell As String
Me.Refresh
mediaPath = Replace(ERRMediaFullPath, "\" & ErrMedia, "")
If flagMediaOpen = True Then
ret = ShellExecute(Me.hWnd, "open", ERRMediaFullPath, "", mediaPath, 1)
Else
ret = Shell("explorer.exe /e, " & ERRMediaFullPath & ",/select, " & ERRMediaFullPath, vbNormalFocus)
' strchain = "explorer.exe /e, " & ERRMediaFullPath & ",/select, " & ERRMediaFullPath
' ret = ShellExecute(Me.hWnd, "open", strShell, "", mediaPath, 1)
DoEvents
End If
End Sub |
Partager