DocumentPropertyMenu: Select file when opening from context menu
This commit is contained in:
parent
7e05938ba8
commit
f8ea2c755b
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user