CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2002
    Posts
    87

    How to use DirectoryExists?

    Dear code gurus,

    I am trying to use DirectoryExists function that seems to be defined in VisualBasic. What directive do I need to use when using this function in C#? It does not seem to work right away.

    Thank you in advance.

  2. #2
    Join Date
    Apr 2010
    Posts
    131

    Re: How to use DirectoryExists?

    Code:
    if (System.IO.Directory.Exists(@"c:\"))
                {
                    //do something
                }
    Cheers!

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

Featured