Results 1 to 3 of 3

Thread: Directories

  1. #1

    Thread Starter
    Hyperactive Member mastermind94's Avatar
    Join Date
    Jun 2000
    Location
    Montréal, Canada
    Posts
    441

    Unhappy

    How can I know if a directory exist on the hard drive?




  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606

    Lightbulb ->

    if dir(path) = "" then not existing

    else

    dir(path) = the name of the directory

  3. #3
    Guest
    Code:
    If Dir("C:\MyFolder", vbDirectory) <> "" Then
    Msgbox "Folder exists"
    Else
    Msgbox "Folder does not exist"
    End If

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