Results 1 to 3 of 3

Thread: folde checking problem

  1. #1

    Thread Starter
    Lively Member muralidhary's Avatar
    Join Date
    Aug 2001
    Location
    Chennai
    Posts
    89

    Wink 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

  2. #2
    Fanatic Member Kaverin's Avatar
    Join Date
    Oct 2000
    Posts
    930
    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

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    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
  •  



Click Here to Expand Forum to Full Width