CFile f; if(f.Open(drive_path+_T("\\\\a.txt"),CFile::modeCreate|CFile::modewrite)){ f.Close(); //drive_path is valid drive }else{ //drive_path isnot valid }
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)