本帖最后由 CrLf 于 2012-4-13 22:26 编辑
- cls
- @echo off
-
- :igs
- set str=exe
- dir /a-d /b /s *.%str% >nul && call :great
- goto complete
-
- :great
- for /f "delims=" %%i in ('dir /a-d /b /s *.%str%') do echo %%~xi "%%i" >> %str%.txt
- goto :EOF
-
- :complete
- echo.
- pause
- exit
- pause
复制代码
|