How to check a directory exists or not - C#

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
 
P

Paul G. Tobey [eMVP]

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.
 
B

Basha

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.
 

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

Top