VBForums
>
Visual Basic
>
Visual Basic 6 and Earlier
> Does Directory Exist
PDA
Click to See Complete Forum and Search -->
:
Does Directory Exist
nmretd
Nov 30th, 1999, 06:03 PM
How can I check to see if a directory exists ?
hayessj
Nov 30th, 1999, 06:30 PM
Use the dir() function, i.e. to see if d:\tmp exists use
If Dir("d:\tmp", vbDirectory) <> "" Then
MsgBox "Dir exists"
Else
MsgBox "Dir does not exist"
End If
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.