The following tip will help you to dig out the following details from
Full File Path:
1)
FileName
2)
Extension
3)
FileNameWithoutExtension
4)
DirectoryName
5)
PathRoot
Imports System.IO
Dim _FullPath As String = "C:\Users\Sony\Desktop\Readme.txt"<br>
MsgBox(Path.GetFileName(_FullPath))
MsgBox(Path.GetExtension(_FullPath))
MsgBox(Path.GetFileNameWithoutExtension(_FullPath))
MsgBox(Path.GetDirectoryName(_FullPath))
MsgBox(Path.GetPathRoot(_FullPath))