How to check a directory exists or not - C#

  • Thread starter Thread starter Joby
  • Start date Start date
J

Joby

Dear All,
Could you plese help me to solve my problem. My probleme is: I want
to check a particalar directory is existing or not. I dont know the
path.
One more thing : How can i check, .NET is installed on my machine
or not.If it is installed then only my program should download. I cant
use MSI file.
Thanking you all.

Regards
Joby M.Chacko
 
How do you expect to be able to tell if a directory exists if you don't know
the path?! You can P/Invoke to GetFileAttributes(), but you have to know
*something*...

Paul T.
 
if dot net cf is not installed on ur machine (pocketpc???), how will
your dot net program run in the first place.

If you want to install dot net framework, u can download the cab
file(containing cf) and open it in ur pocketpc.

-Basha.
 
Back
Top