A
A.Rocha
Hi,
In my mobile application i get de Path of "\\My Documents" folder with code
bellow
string DocPATH =
Environment.GetFolderPath(Environment.SpecialFolder.Personal).ToString()
Its work fine, but if the User rename/delete (is stupid, but heapen) "My
Documents" folder i get an error.
How can i verify if folder exists before get the folder path without use
try/catch?
some like this.
string DocPATH
try
{
DocPATH =
Environment.GetFolderPath(Environment.SpecialFolder.Personal).ToString();
}
catch
{
DocPATH ="";
}
Thanks for any help.
In my mobile application i get de Path of "\\My Documents" folder with code
bellow
string DocPATH =
Environment.GetFolderPath(Environment.SpecialFolder.Personal).ToString()
Its work fine, but if the User rename/delete (is stupid, but heapen) "My
Documents" folder i get an error.
How can i verify if folder exists before get the folder path without use
try/catch?
some like this.
string DocPATH
try
{
DocPATH =
Environment.GetFolderPath(Environment.SpecialFolder.Personal).ToString();
}
catch
{
DocPATH ="";
}
Thanks for any help.