- @echo off
- rem 批处理保存为ansi编码格式
-
- set output=list.txt
-
- (for /f "delims=" %%i in ('dir /b /a-d') do (
- if "%%~nxi" neq "%output%" (
- if "%%~nxi" neq "%~nx0" (
- echo ^<img class="aligncenter" src="http://www.bathome.net/images/%%~nxi" alt="" /^>
- echo=
- )
- )
- ))>"%output%"
- pause
复制代码
|