Get the App
SLTechnology News&Howtos  ›  Development  › 

How to create a quick check manual for CMD commands using batch processing

Shulou Source: shulou.com Published: 2022-06-03 08:15:35 11月15日 Update

This article mainly introduces how to use batch processing to create a quick check manual of CMD commands, which has a certain reference value, and interested friends can refer to it. I hope you can learn a lot after reading this article.

The code is as follows:

@ echo off & setlocal EnableDelayedExpansion

Echo.==

Please wait a moment for echo to start creating the CMD Command Quick check Manual.

Echo creates web page file headers...

> CMDHelp.htm echo ^

> CMDHelp.htm echo ^ CMD Command Quick check Manual ^

> > CMDHelp.htm echo ^

> > CMDHelp.htm echo ^

> > CMDHelp.htm echo ^

> CMDHelp.htm echo ^ ^ CMD Command Quick check Manual ^% username% -% date% ^ ^

> > CMDHelp.htm echo ^

Echo creates a help directory...

For / f "delims=:"% fin ('help ^ | findstr / n "^ ASSOC"') do set head=%%f

Set / a head-=1

If "% head%" = = "0" (set head=) else set head=skip=%head%

For / f "% head% delims="% I in ('help') do (

Set str=%%i & set nameplate strlux 9! & set nameplate strlux 9!

Echo.roomname! | findstr / v "^ [Amurz]" > nul & & echo! desc! > CMDHelp.htm

If errorlevel 1 echo ^! name! ^ ^ ^ desc! > CMDHelp.htm

)

> > CMDHelp.htm echo ^ returns to the top ^ ^

Echo create help text...

Cscript / / h:cscript / / b

For / f% I in ('help ^ | findstr "^ [Amurz]"') do (

> > CMDHelp.htm echo ^% I ^ ^

Echo is in the help body to create% I...

If / I "% I" = "SC" echo Please press Y key to continue.

Help I | findstr "" > nul

If not errorlevel 1 (

For / f "delims=" an in ('help% i') do (

Set st=%%a & set statically qualified: ^!

Echo! st! > > CMDHelp.htm

)

) else help I > > CMDHelp.htm

> > CMDHelp.htm echo ^ ^ returns to the top of the page ^

)

Echo "CMD Command Quick check Manual" has been created, open it with any key.

Echo.==

Pause > nul & & start CMDHelp.htm

Thank you for reading this article carefully. I hope the article "how to use batch processing to create CMD commands Quick check Manual" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Commands manuals articles help text code value interests at the same time documents more friends directories knowledge editing web pages industry information information channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info MariaDB Redmi MySQL Shulou Information