DocumentPropertyMenu: Select file when opening from context menu

This commit is contained in:
Jonathan Jenne 2020-12-17 13:38:14 +01:00
parent 7e05938ba8
commit f8ea2c755b

View File

@ -99,8 +99,13 @@ Public Class DocumentPropertyMenu
Exit Sub Exit Sub
End If End If
Dim oDirectory = IO.Path.GetDirectoryName(_FilePath) Dim oArgs As String = $"/e, /select, ""{_FilePath}"""
Process.Start(oDirectory) Dim oInfo As New ProcessStartInfo() With {
.Arguments = oArgs,
.FileName = "explorer"
}
Process.Start(oInfo)
End Sub End Sub
Private Function TestPathExists(Title As String) As Boolean Private Function TestPathExists(Title As String) As Boolean