::在桌面运行批处理即可
@Echo off&title wkdxz @ BAT-GO At:2011-03-09 21:51:14
::自定义文件后缀名
set a=txt
set b=doc
for /f "delims=" %%a in ('dir /b/a-d *.%a%') do if exist ".\%%~na.%b%" md ".\%%~na\" 2>nul&move "%%a" ".\%%~na\" 2>nul&move ".\%%~na.%b%" ".\%%~na\" 2>nul
pause
\ %%i in (*.txt) do ren %%i *.htm
把这条命令保存为*.bat就可以运行做到你想做的拉,好了就来谢我吧~
@echo off
copy a.* a
copy b.* b
pause