Generate a Web page file with batch processing and open code _dos/bat

Source: Internet
Author: User
Tags goto
Very strong, the following content in Notepad to make a bat file, and then run it
Copy Code code as follows:

@echo off
del cmd command speed Check manual. htm >nul
echo.===============================
Echo ... Please wait while the HTM file is constructed ....
echo.===============================
>cmd Command Quick Search manual. htm echo ^>>cmd Command Quick Search manual. htm echo ^<title^>cmd Command Quick reference manual ^</title^>
>>cmd Command Quick Search manual. htm echo ^<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "^/^ >
>>cmd Command Quick Search manual. htm echo ^<meta Http-equiv=refresh content=10; Url=http: ^/^/www.jb51.net^>
>>cmd Command Quick Search manual. htm echo ^>>cmd Command Quick Search manual. htm echo ^<a name= "Top" ^>
>>cmd Command Quick Search manual. htm echo ^<center^>
>>cmd Command Quick Search manual. htm echo ^>>cmd Command Quick Search manual. htm echo written by Junluck%date%
>>cmd Command Quick Search manual. htm echo ^</center^>
>>cmd Command Quick Search manual. htm echo ^<br^>

Ver|find "Windows XP" && Goto:joke

for/f "Tokens=1*"%%i in (' Help^|more +3 ') does (
Help%%i>nul && Echo ^<a href= "#%%i" ^>%%i^</a^>^ ^%%j >>cmd command Speed Check manual. htm | | echo ^ ^ ^ ^%%i%%j>>cmd command Speed check manual. htm
>>cmd Command Quick Search manual. htm echo ^</br^>
)

for/f%%i in (' Help^|more +3 ") Do (
Help%%i>nul && (
>>cmd Command Quick Search manual. htm echo ^<a name= "%%i" ^>
>>cmd Command Quick Search manual. htm echo ^>>cmd Command Quick Search manual. htm echo ^<pre^>
Help%%i>>cmd command Quick Search manual. htm
>>cmd Command Quick Search manual. htm echo ^</pre^>
>>cmd command Quick manual. htm echo ^<a href= "#top" ^> return to the top of the page ^</a^>
)
)
Start cmd command Quick Search manual. htm
Goto:eof

: Joke
for/f "Tokens=1*"%%i in (' Help^|more +1 ') does (
Help%%i>nul && echo ^ ^ ^%%i%%j>>cmd Command Quick-check manual. htm | | echo ^<a href= "#%%i" ^>%%i^</a^>^ ^%%j >>cmd command Speed check manual. htm
>>cmd Command Quick Search manual. htm echo ^</br^>
)

for/f%%i in (' Help^|more +1 ") Do (
Help%%i>nul | | (
>>cmd Command Quick Search manual. htm echo ^<a name= "%%i" ^>
>>cmd Command Quick Search manual. htm echo ^>>cmd Command Quick Search manual. htm echo ^<pre^>
Help%%i>>cmd command Quick Search manual. htm
>>cmd Command Quick Search manual. htm echo ^</pre^>
>>cmd command Quick manual. htm echo ^<a href= "#top" ^> return to the top of the page ^</a^>
)
)
Start cmd command Quick Search manual. htm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.