@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: This is returned by GetFileAttributes if the function fails !!!!C# Constants: const Int64 INVALID_FILE_ATTRIBUTES = -1; !!!!VB Constants: TODO !!!!Notes: // ported http://stackoverflow.com/questions/6218325/how-do-you-check-if-a-directory-exists-on-windows-in-c public static bool DirectoryExists(string path) { int attributes = GetFileAttributes(path); return (attributes != INVALID_FILE_ATTRIBUTES && ((attributes & FILE_ATTRIBUTE_DIRECTORY) != 0)); }
Edit Constants.INVALID...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.