CString path1 = "E:\\处理后"; if (!PathIsDirectory(path1.GetBuffer(0))) { ::CreateDirectory(path1.GetBuffer(0), NULL); }