@echo off
setlocal enabledelayedexpansion
for /f "tokens=1-3* delims=-" %%i in ('dir /b /a-d *.dsn') do (
set folder=%%k
set folder=!folder:~0,2!版
if not exist !folder!\ (
md !folder!
)
move /y "%%i-%%j-%%k-%%l" !folder!
)
@echo off
setlocal enabledelayedexpansion
for /f "tokens=1-3* delims=-" %%i in ('dir /b /a-d *.dxf') do (
set folder=%%k
set folder=!folder:~0,2!版
if not exist !folder!\ (
md !folder!
)
move /y "%%i-%%j-%%k-%%l" !folder!
)
Talk is cheap. Show me the code.
没事不要瞎扯淡,有能耐就把代码贴出来给我看。