2017年3月29日 星期三

【VB.NET】開啟資料夾指令

原先以為可以用
IO.File.Open(strFile, IO.FileMode.Open)

Dim OFD As New OpenFileDialog
OFD.FileName = strFile
OFD.ShowDialog()

Dim FBD As New FolderBrowserDialog
FBD.SelectedPath = strFld
FBD.ShowDialog()

結果最後使用
System.Diagnostics.Process.Start("explorer.exe", strFld)
KO這個問題。