Dim filePath As String = "D:\picture_td\Picture\" & gvItem.Rows(rowIndex).Cells(0).Value & ".jpg"
Dim chk_path As String = System.IO.Path.GetFileName(filePath)
If System.IO.File.Exists(chk_path) = True Then
MsgBox("true")
Else
MsgBox("false")
End If
Tag : .NET, Ms SQL Server 2008, Win (Windows App), VB.NET