ファイルパスの判断を記載します。
絶対パスか相対パスかを判断する
Dim sFilePath As String = "c:work\myfile.txt"
If System.IO.Path.IsPathRooted(sFilePath) Then
MessageBox.Show("絶対パス")
Else
MessageBox.Show("相対パス")
End If
拡張子を含むか判断する
Dim sFilePath As String = "c:work\myfile.txt"
If System.IO.Path.HasExtension(sFilePath) Then
MessageBox.Show("含んでいます")
Else
MessageBox.Show("含んでいません")
End If