check folder / directory is exist or not...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i am writing a Console app, it needs user to input a path. the problem is how can i validate the user input path is valid or not?
many thanks..
Kel
 
Try this

bool exists = System.IO.Directory.Exists(@"c:\myPath");

--
Shak
(Houston)


kelkel said:
i am writing a Console app, it needs user to input a path. the problem is
how can i validate the user input path is valid or not?
 

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

Similar Threads


Back
Top