大师们:
您们好!小弟经常要分类一些NC格式的文档,原理是这样的:先删除_CM结尾的NC文档,其文档格式为**_CM.NC,之后将固定格式的NC文档移入指定的文件夹.请高手帮我在以下代码中增加删除指令,先删除再分类,谢谢- @echo off
- if exist *_-Z*.NC (
- md "-Z面" 2>nul
- move /y *_-Z*.NC "-Z面"
- )
- if exist *_+Z*.NC (
- md "+Z面" 2>nul
- move /y *_+Z*.NC "+Z面"
- )
- if exist *_-X*.NC (
- md "-X面" 2>nul
- move /y *_-X*.NC "-X面"
- )
- if exist *_+X*.NC (
- md "+X面" 2>nul
- move /y *_+X*.NC "+X面"
- )
- if exist *_-Y*.NC (
- md "-Y面" 2>nul
- move /y *_-Y*.NC "-Y面"
- )
- copy /y *.xls "C:\Users\Administrator\Desktop\清单"
- del /f /q "%~f0"
复制代码
|