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?
 
Back
Top