2020年8月15日 星期六

vb.net 開啟資料夾並選取指定檔案 [Open Explorer and file selected]

1
2
3
4
5
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        folderPath = "C:\Users\SmallGCOk\Desktop\Scribd 下載器\Powered By SmallGCOk\bin\Debug\2fl8esgy9s3kfx5z"
        Process.Start("explorer.exe", "/select," + folderPath & "\010.jpg")
        '  Process.Start("explorer.exe", "/select," + "C:\File_Name.txt")
    End Sub

沒有留言:

張貼留言