vb.net folder name get
C:\Windows\SysWOW64

1.
Dim split As String() = filePath.Split("\")
Dim parentFolder As String = split(split.Length - 1)

 

parentFolder = SysWOW64

 

 

2.

 Dim filePath As String = "C:\Windows\SysWOW64"

 Dim directory As String = Path.GetFileName(filePath)

 

directory = SysWOW64

이 게시물을

댓글'1'
Dim filePath As String = "c:\projects\roott\wsdlproj\devlop\beta2\text"
Dim directory As String = Path.GetDirectoryName(filePath)

 

c:\projects\roott\wsdlproj\devlop\beta2

이 댓글을

공유하기

SEARCH

MENU NAVIGATION