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
Popularity: 4% [?]
Popularity: 4% [?]
Check if File/Folder/Directory Exists in VB.NET
Sunday, June 17th, 2007
Check 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"))
Popularity: 15% [?]
Popularity: 15% [?]
