I am just wondering: I am looking for a way to validate if a given path is valid. (Note: I do not want to check if a file is existing! I only want to proof the validity
You can try this code:
try { Path.GetDirectoryName(myPath); } catch { // Path is not valid }
I'm not sure it covers all the cases...