BOOL CDlgSendDataRun::DeleteDirectory(CString path){
CFileFind tempFind;
CString findpath = path + _T("//*.*");
BOOL IsFinded = tempFind.FindFile(findpath);
while(IsFinded) {
IsFinded = tempFind.FindNextFile(); if( tempFind.IsDots()) continue; if( tempFind.IsDirectory()) DeleteDirectory(tempFind.GetFilePath()); else CFile::Remove(tempFind.GetFilePath()); } tempFind.Close(); return RemoveDirectory(path);}