일괄 처리 로 웹 파일 을 만 들 고 열 린 코드

아주 강하 군요.다음 내용 을 수첩 으로 bat 파일 로 만 들 고 실행 하면 됩 니 다

@echo off 
del CMD .htm >nul 
echo.=============================== 
echo...... , htm ..... 
echo.===============================  
 >CMD .htm echo ^<head^> 
>>CMD .htm echo ^<title^>CMD ^</title^> 
>>CMD .htm echo ^<meta http-equiv="Content-Type" content="text/html; charset=gb2312" ^/^> 
>>CMD .htm echo ^<META http-equiv=refresh content=10;URL=http:^/^/Www.jb51.net^>
>>CMD .htm echo ^</head^> 
>>CMD .htm echo ^<A NAME="Top"^> 
>>CMD .htm echo ^<center^> 
>>CMD .htm echo ^<h1^>CMD  ^</h1^> 
>>CMD .htm echo Written by junluck %date% 
>>CMD .htm echo ^</center^> 
>>CMD .htm echo ^<br^> 

ver|find "Windows XP" && goto:joke 

for /f "tokens=1*" %%i in ('help^|more +3') do ( 
help %%i>nul && echo ^<a href="#%%i"^>%%i^</a^>^ ^ %%j >>CMD .htm || echo ^ ^ ^ ^ %%i %%j>>CMD .htm 
>>CMD .htm echo ^</br^> 


for /f %%i in ('help^|more +3') do ( 
help %%i>nul && ( 
>>CMD .htm echo ^<a name="%%i"^> 
>>CMD .htm echo ^<h2^>%%i^</h2^> 
>>CMD .htm echo ^<pre^> 
help %%i>>CMD .htm 
>>CMD .htm echo ^</pre^> 
>>CMD .htm echo ^<a href="#top"^> ^</a^> 


start CMD .htm 
goto:eof 

:joke 
for /f "tokens=1*" %%i in ('help^|more +1') do ( 
help %%i>nul && echo ^ ^ ^ ^ %%i %%j>>CMD .htm || echo ^<a href="#%%i"^>%%i^</a^>^ ^ %%j >>CMD .htm 
>>CMD .htm echo ^</br^> 


for /f %%i in ('help^|more +1') do ( 
help %%i>nul || ( 
>>CMD .htm echo ^<a name="%%i"^> 
>>CMD .htm echo ^<h2^>%%i^</h2^> 
>>CMD .htm echo ^<pre^> 
help %%i>>CMD .htm 
>>CMD .htm echo ^</pre^> 
>>CMD .htm echo ^<a href="#top"^> ^</a^> 


start CMD .htm

좋은 웹페이지 즐겨찾기