慕夜蓝化 当前离线
四级士官
@echo off&setlocal enabledelayedexpansion for /d %%i in (g:\h\*) do ( md "%%~fsi\厂家" "%%~fsi\型号" 2>nul pushd "%%~fsi" for %%a in (*.*) do ( set "str=%%a"&set "n=!str:~,1!" if !n! lss a ( move "%%a" 厂家 ) else ( move "%%a" 型号 ) ) popd ) pause复制代码
TOP
pcl_test 当前离线
荣誉版主
@echo off set "filesdir=G:\H\" for /f %%i in ('dir /ad /b "%filesdir%"') do ( pushd "%filesdir%%%i" md "厂家\" "型号\" for /l %%a in (1,1,5) do move %%a-*.* "厂家\" move *.* "型号\" popd ) pause复制代码
SandraRusso 当前离线
一级士官