摘要:
privatestringGetCanUseName(stringnewName,stringoldName,intnum){if(!File.Exists(newName)){returnnewName;}else{//存在stringext=Path.GetExtension(oldName);stringnameInfo=oldName.Replace(ext,"");returnGetCanUseName(nameInfo+"_"+(++num)+ext,oldName,++num);}}privatevoidbutton1_Click(obje 阅读全文