How to check if directory exists

  • Thread starter Thread starter Gregory K
  • Start date Start date
G

Gregory K

I need to set Environment.CurrentDirectory. If the path I am trying to set
doesn't exist, the statement raises an exception. Is there a way to check
whether given path exists? In the other words, is there in Framework 2.0
something similar to File.Exists() for directories?
Gregory Khrapunovich
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top