本帖最后由 thp2008 于 2023-12-23 16:53 编辑
保存为ANSI编码:- @echo off
- setlocal enabledelayedexpansion
-
- set "output=url.txt"
-
- echo ^<html^> > %output%
- echo ^<body^> >> %output%
-
- for %%F in (*) do (
- echo [img]http://www.bathome.net/images/%%~nxF[/img] >> %output%
- echo. >> %output%
- )
-
- echo ^</body^> >> %output%
- echo ^</html^> >> %output%
-
- echo 批处理已完成,结果保存为%output%
复制代码
|