dos命令for循环

来源:互联网 发布:开淘宝上卖花卉好赚吗 编辑:程序博客网 时间:2024/04/29 17:08

以文件批量处理为例,示例代码如下:

@echo offset work_path="E:\copy\includes"E: cd %work_path% for /R %%s in (*.resources) do (copy %%s %%s.resxecho FILE:%%s.resx success!)pause 

以上代码主要实现将
E:\copy\includes
目录下的
*.resources
文件复制为后缀名为
.resx

的文件

0 0