Results 1 to 2 of 2

Thread: How can I check if a folder exists?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Location
    I'm right here!
    Posts
    849

    Question How can I check if a folder exists?

    hello,

    I want to know how can I check if a folder exists.
    can anyone pls help?

    thanks

    Dekel C.

  2. #2
    Lively Member
    Join Date
    Jan 2006
    Posts
    66

    Re: How can I check if a folder exists?

    Try this.

    Code:
    string path = "C:\\Myfolder";
    
    if(Directory.Exists(path))
    {
    MessageBox.Show("It exists");
    }
    else
    {
    Messabebox.Show("doesnt Exist");
    }
    -FPP

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