If (fileExt. ToUpper () = ". RAR") {string zpath = Server. MapPath ("~ /SendFileZIP/"); // create a folder if (! Directory. exists (zpath) {Directory. createDirectory (zpath);} // when importing rar compressed files, clear all the files in the SendFileZIP folder DirectoryInfo clera = new DirectoryInfo (zpath); deletefileOrDic (clera ); // extract the uploaded rarfile int count = RARToFileEmail (zpath, filePath); // determine whether the number of files extracted is greater than if (count> 0) {string [] strFiles = Directory. getFiles (zpath); string strfiel = ""; foreach (string item in strFiles) {DirectoryInfo dirtory = New DirectoryInfo (item); // if (! Dirtory. exists) {strfiel = strfiel + item. toString (); break;} string zname = Path. getFileName (strfiel ). toString (); // obtain the name of the decompressed file // The Name Of The decompressed file string zFilePath = zpath + zname ;}}