Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

check if file exsists

Status
Not open for further replies.

magmo

Programmer
May 26, 2004
291
SE
Hi


I would like to create a function that check inside a folder if a file exsits, and if so return True. Could anyone help me out here in vb.net


Regards
 
You'd better goto vb.net forum.

Anyway check the namespace System.IO like:


Imports System.IO ' out of the class this line

If File.Exists("path_to_the_file") = True Then
' code for TRUE
Else
' code for FALSE
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top