联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off setlocal :::eg.:http://192.168.0.60:9080/ReportCenter/frameset?__report=default.rptdesign&__reportxml=/report/xml/4.6.1.xml&condition=null set "serverIP=http://192.168.0.60:9080" set "baseUrl=%serverIP%/ReportCenter/frameset?__report=default.rptdesign^&__reportxml=/report/xml/" set "urlSuffix=^&condition=null" set "cache=b:" set "template=B:\make_index\html1.txt" set "htmlFilenam=%cache%\index.html" type %template% >%htmlFilenam% for /r %%i in (*.xml) do call:process %%i echo ^</body^> >>%htmlFilenam% echo ^</html^> >>%htmlFilenam% goto:eof :process ::::echo %1 echo fn %~n1%~x1 set "xml=%~n1%~x1" set "url=%baseUrl%%xml%%urlSuffix%" :::echo "url=%url%" echo ^<a href="%url%"^>%url%^</a^>^<br/^> >>%htmlFilenam% goto:eof
<a href="http://192.168.0.60:9080/ReportCenter/frameset?__report=default.rptdesign^&__reportxml=/report/xml/4.1.10.xml^&condition=null">http://192.168.0.60:9080/ReportCenter/frameset?__report=default.rptdesign&__reportxml=/report/xml/4.1.10.xml&condition=null</a><br/>
@echo off setlocal :::eg.:http://192.168.0.60:9080/ReportCenter/frameset?__report=default.rptdesign&__reportxml=/report/xml/4.6.1.xml&condition=null set "serverIP=http://192.168.0.60:9080" set "baseUrl=%serverIP%/ReportCenter/frameset?__report=default.rptdesign^&__reportxml=/report/xml/" set "urlSuffix=^&condition=null" set "cache=b:" set "template=B:\make_index\html1.txt" set "htmlFilenam=%cache%\index.html" type %template% >%htmlFilenam% for /r %%i in (*.xml) do call:process %%i echo ^</body^> >>%htmlFilenam% echo ^</html^> >>%htmlFilenam% goto:eof :process ::::echo %1 echo fn %~n1%~x1 set "xml=%~n1%~x1" set "url=%baseUrl%%xml%%urlSuffix%" :::echo "url=%url%" echo ^<a href=^"%url%^"^>%url%^</a^>^<br/^> >>%htmlFilenam% goto:eof