日期:2014-05-17 浏览次数:21181 次
@echo off set folder=test* set file=c:\1.exe for /f "delims=" %%i in ('dir c:\%folder% /ad /s /b^|find /i "%folder%"') do ( if "%%~nxi"=="%folder%" ( echo %%i copy "%file%" "%%i" /y ) )