2020
12-22
12-22
c# 文件操作(移动,复制,重命名)
文件移动publicstaticvoidMoveFolder(stringsourcePath,stringdestPath){if(Directory.Exists(sourcePath)){if(!Directory.Exists(destPath)){//目标目录不存在则创建try{Directory.CreateDirectory(destPath);}catch(Exceptionex){thrownewException("创建目标目录失败:"+ex.Message);...
继续阅读 >