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
End If
Dim oDirectory = IO.Path.GetDirectoryName(_FilePath)
Process.Start(oDirectory)
Dim oArgs As String = $"/e, /select, ""{_FilePath}"""
Dim oInfo As New ProcessStartInfo() With {
.Arguments = oArgs,
.FileName = "explorer"
}
Process.Start(oInfo)
End Sub
Private Function TestPathExists(Title As String) As Boolean