回复 4# ytyyutianyun
可以在md之前加个判断- @echo off
- echo 全盘扫描E盘下的grd文件,请耐心等待...
- cd.>list.txt
- for /f "delims=" %%i in ('dir /a-d /b *.grd') do (echo %%i)>>list.txt
- echo.>>list.txt
- for /f "delims=" %%i in (list.txt) do (
- for /f "tokens=1 delims==l" %%j in ("%%i") do (
- if not exist "%%j\" (
- md %%j
- )
- move %%i %%j
- )
- )
- pause
复制代码
|