本帖最后由 pcl_test 于 2015-4-14 12:12 编辑
问题1、2- @echo off
- setlocal enabledelayedexpansion
- for /f "tokens=1-3* delims=-" %%a in ('dir /a-d /b *.dxf') do (
- if "%%d" == "" (
- set "n=%%b"
- md "!n:~,6!\" 2>nul
- move "%%a-%%b-%%c" "!n:~,6!\"
- ) else (
- set "n=%%c"
- md "!n:~,7!\" 2>nul
- move "%%a-%%b-%%c-%%d" "!n:~,7!\"
- )
- )
复制代码 问题3 论坛自行搜索 定时 |