摘要: 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 阅读全文
posted @ 2014-01-23 14:18 pnljs 阅读(158) 评论(0) 推荐(0) 编辑