|
-
Sep 11th, 2001, 02:20 AM
#1
Thread Starter
Lively Member
folde checking problem
hello
i have a problem with checking
whether a folder exists or not
i use the following code
Private Sub Form_Load()
Dim fol As String
fol = Dir$("C:\dhar\")
If fol = "" Then
MsgBox "Folder does not exist!"
Else
MsgBox "Folder Exist!"
End If
End Sub
but it is giving folder exists
iff there are some files in the folder
if there are no files in the folder then it is giving
folder does not exist
how can i overcome this
can anybody help me
-
Sep 11th, 2001, 02:38 AM
#2
Fanatic Member
I'm baaaack...
VB5 Professional Edition, VC++ 6
Using a 1 gHz Thunderbird, 256 mb RAM, 40 gb HD system with Win98se
I feel special because I finally figured out how to loop midis: Post link
I'm a fanatic too 
-
Sep 11th, 2001, 09:04 AM
#3
Thanks Kaverin, I've been looking for a routine like this.
muralidhary: Good question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|