2020年7月13日 星期一

vb.net 取得檔案路徑 [Get File Path]


1
2
3
4
5
Dim fileName As String = "C:\mydir.old\myfile.ext"
Dim strPath As String

strPath = Path.GetDirectoryName(fileName)
MsgBox(strPath)

沒有留言:

張貼留言