随笔分类 -  批处理学习

实现一个关于拷贝递归目录下文件的批处理
摘要:需求:某个文件夹A下存在若干子文件夹a1,a2,a3....和若干文件,子文件夹a1,a2,a3...下存在若干txt文件和xml文件,现要将A的子目录下的所有txt文件拷贝到A下的一个指定的新建的b文件夹中。批处理: 1 @echo off 2 set inputPath=%cd% 3 set outputPath=%cd%\Result 4 echo %inputPath% 5 echo %outputPath% 6 if not exist "%outputPath%" md "%outputPath%" 7 for /f "tokens 阅读全文
posted @ 2013-05-19 19:59 君~ 阅读(1053) 评论(0) 推荐(0)