Check if Directory Exist
Monday, September 3rd, 2007'vb5+ Dim f As String f = "C:\WINDOWS" dirFolder = Dir(f, vbDirectory) If dirFolder <> "" Then MsgBox("This folder already exists.", vbCritical) 'directory exists action here End If
Check if File/Folder/Directory Exists in VB.NET
Sunday, June 17th, 2007Check if a File or Directory/Folder Exists using VB.NET Check File... MessageBox.Show(IO.File.Exists("d:\someFileName.txt")) Check Folder / Directory MessageBox.Show(IO.Directory.Exists("c:\myFolder"))
