- @echo off & setlocal enabledelayedexpansion
-
-
-
- rem echo
-
- for /f "tokens=1,2,3 delims=/- " %%a in ("%date%") do @set D=%%a%%b%%c
- rem echo
-
- for /f "tokens=1,2,3 delims=:." %%a in ("%time%") do @set T=%%a%%b%%c
- rem echo
-
- set T=%T: =0%
- rem echo
- echo %D%
- del *%D%*.htm
- pause
- set n_1=0
- for /r D:\wwwroot\ce4\%D%\ %%i in (*%D%*.jpg) do (
- set /a n+=1
- if !n! leq 3 (>>%D%-!n_1!.htm echo.^<a href="%%~pi" target="_blank"^>^<img src="%
-
- %i" height="200" /^>^</a^>) else (
-
- set /a n_1+=1
- set n=1
- >>%D%-!n_1!.htm echo.^<a href="%%~pi" target="_blank"^>^<img src="%%i" height="200"
-
- /^>^</a^>
- )
- )
复制代码 pause
经过研究上面的问题 已经解决好两个了只有最后一个,求告手帮助把文件路径改写成网络路径.
也就是生成的
<img src="D:\wwwroot\ce4\20151122\20151122 (1).jpg" height="200" />
改写成
<img src="http://192.168.1.17/20151122/20151122 (1).jpg" height="200" /> |