本帖最后由 xugouwenrou 于 2015-3-19 13:55 编辑
大家好,我是个批处理菜鸟,我想在这个批处理后面增加一个功能,将现有文件夹中后缀为xls的文件移入指定路径文件夹,文件夹路径为C:\Documents and Settings\Administrator\桌面\数据
现有批处理如下:- @echo off
- if exist *-BM*.NC (
- md "BM" 2>nul
- move /y *-BM*.NC "BM"
- )
- if exist *-FM*.NC (
- md "FM" 2>nul
- move /y *-FM*.NC "FM"
- )
- if exist *-EP*.NC (
- md "EP" 2>nul
- move /y *-EP*.NC "EP"
- )
- if exist *-A*.NC (
- md "A" 2>nul
- move /y *-A*.NC "A"
- )
- if exist *-B*.NC (
- md "B面" 2>nul
- move /y *-B*.NC "B面"
- )
- del /f /q "%~f0"
复制代码 请大神帮下忙,谢谢 |