Tag Archives: Folder Exist

How to Check if a File and Directory or Folder Exists using VB.NET

Click Star to Rate Post
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 3.00 out of 5)
 

This shows how to check if a File or a Directory and Folder Exists using VB.NET and Higher

This will check if a File exists or not


        MessageBox.Show(IO.File.Exists("d:\someFileName.txt"))

This will check if a Folder or Directory exists or not


        MessageBox.Show(IO.Directory.Exists("c:\myFolder"))