Hi All,
I using VB .Net. I would to check whether this folder exist in my hard disk or not.
Please Help.
Regards,
Dennis
Printable View
Hi All,
I using VB .Net. I would to check whether this folder exist in my hard disk or not.
Please Help.
Regards,
Dennis
Hi.
I believe this is what you're looking for...
VB Code:
If IO.Directory.Exists(Path)=True Then 'Do something End If
damn pax! u got there before me. I saw this post earlier, but didn't have time to reply.
dennist, his method works. if ur unsure, heres another example with full code
VB Code:
' Checking whether the directory exists in the specified path Dim strMyPath as String = "C:\mySample" If Directory.Exists(strMyPath) = True then MsgBox("Directory exists!") Else MsgBox("Directory does not exist") End if
hope it helps