jump to the label specified by goto, which is generally used with if. For example:
Goto end
: EndEcho this is the end
The label is represented by a string. The row where the label is located is not executed.
Choice uses this command to allow users to enter a single character to run different commands. The/c: parameter should be added for use, and c: should be followed by a prompt to enter characters without spaces. Its return code is 1234 ......
For example: choice/c: dimethyl
at will, press CTRL, and scroll the mouse wheel to implement36. Easy hard disk fragmentationAfter the computer is used for a period of time, the hard disk will produce a large number of file fragments. You need to call the disk fragment program on a regular basis for cleanup. To this end, we provide you with a method that allows you to conveniently call the hard disk fragment program.
You can use NotePad to edit a registry import file named "context_defrag.inf" and enter the following content i
commands and command line programs can be called by the START command.Common Intrusion parameters:Minimum window size when Min startsSeparate starts a 16-bit windows program in a separate spaceHigh starts applications in the high priority categoryRealtime starts applications in the realtime priority categoryWait starts the application and waits for it to endParameters: these are parameters sent to the command/program.When the executed application is a 32-bit GUI application, cmd. EXE returns a
priority categoryWait starts the application and waits for it to endParameters: these are parameters sent to the command/program.When the executed application is a 32-bit GUI application, cmd. EXE returns a command prompt before the application is terminated. If it is executed in the Command Script, the new behavior will not occur.
8. Choice commandChoice uses this command to allow users to enter a single character to run different commands. The/C: parameter should be added for use, and C: shou
return a command prompt. If executed within a command script, the new behavior does not occur.8.choice commandChoice Use this command to allow the user to enter a character to run different commands. Use should be added/C: parameter, the letter should be written after the prompt can enter characters, no spaces between. Its return code is 1234 ...such as: Choice/c:dme defrag,mem,endwill displayDefrag,mem,end[d,m,e]?Sample:The contents of Sample.bat ar
operating system is not a problem.
In addition, if a user is in need, you can save a smaller picture file named "Albumartsmall.jpg" when saving the "folder.jpg" file mentioned above, and the advantage is that if the user plays the music file using the MPXP player, But the player's window is less than X 200 pixels, the player can directly display this small picture, or the player needs to "folder.jpg" processing, resize it to display in the smaller window, which will naturally affect the speed o
run the command: choice/c ync/m "confirm, press Y, please press N, or cancel please press C." "
The screen will show:
Confirm Press Y, please press N, or cancel, press C. [Y,n,c]?
For example: The contents of the Test.bat are as follows (note that the return value is ordered from high to low by the IF errorlevel):
@echo off
CHOICE/C dme/m "Defrag,mem,end"
if errorlevel 3 goto end
if errorlevel 2 goto MEM
if errorlevel 1 goto
control [initandlist
EN] * * WARNING:/sys/kernel/mm/transparent_hugepage/enabled is ' always '. 2018-07-31t17:40:28.138+0800 I CONTROL [initandlisten] * * We suggest setting it to ' Never ' 2018-07-31t17:40:28.138 +0800 I control [Initandlisten] 2018-07-31t17:40:28.138+0800 I control [Initandlisten] * * WARNING:/sys/kernel/mm/trans
Parent_hugepage/defrag is ' always '. 2018-07-31t17:40:28.138+0800 i CONTROL [initandlisten] * * We suggest setting it t
users to enter a single character to run different commands. The/c: parameter should be added for use, and c: should be followed by a prompt to enter characters without spaces. Its return code is 1234 ......For example: choice/c: dimethyl defrag, mem, endWill displayDefrag, mem, end [D, M, E]?For example, the content of test. bat is as follows:@ Echo offChoice/c: dimethyl defrag, mem, endIf errorlevel 3 go
. Run the command. Otherwise, run the next sentence. For example, if exist config. sys edit config. sys
3. if errorlevel: command to be executedIf the return code is equal to the specified number, the condition is true. Run the command. Otherwise, run the next sentence. For example, if errorlevel 2 goto x2 DOS returns a number to DOS when running the program, which is called the error code errorlevel or return code.
When the goto batch file runs here, it will jump to the label specified by goto,
should be added for use, and C: should be followed by a prompt to enter characters without spaces. Its return code is 1234 ......For example: choice/C: dimethyl defrag, mem, endWill displayDefrag, mem, end [d, M, E]?Sample:The content of sample. bat is as follows:@ Echo offChoice/C: dimethyl defrag, mem, endIf errorlevel 3 goto defrag (the highest error code sho
priority categoryRealtime starts applications in the realtime priority categoryWait starts the application and waits for it to endParameters: these are parameters sent to the command/program.When the executed application is a 32-bit GUI application, cmd. EXE returns a command prompt before the application is terminated. If it is executed in the Command Script, the new behavior will not occur.8. Choice commandChoice uses this command to allow users to enter a single character to run different co
the endThe label is represented by a string. The row where the label is located is not executed.Choice uses this command to allow users to enter a single character to run different commands. The/C: parameter should be added for use, and C: should be followed by a prompt to enter characters without spaces. Its return code is 1234 ......For example: choice/C: dimethyl defrag, mem, endWill displayDefrag, mem, end [d, M, E]?For example, the content of te
example:
Goto end
: EndEcho this is the end
The label is represented by a string. The row where the label is located is not executed.
Choice uses this command to allow users to enter a single character to run different commands. The/C: parameter should be added for use, and C: should be followed by a prompt to enter characters without spaces. Its return code is 1234 ......
For example: choice/C: dimethyl defrag, mem, endWill displayDefrag,
simple, generally used with the if command.What is the label? Simply put, the name is preceded by a colon, for example, ExampleExample: {command1}
Goto somewhere
{Command2}
: SomewhereEcho "when you execute goto somewhere, command2 is skipped to execute this command"
---ChoiceYou can run different commands by entering a single character. The/C: parameter should be added for use,C: Enter the characters that can be entered. There is no space between them. Its return code is 1234 ......
For exampl
priority categoryREALTIME starts applications in the REALTIME priority categoryWAIT starts the application and waits for it to endParameters: these are parameters sent to the command/program.When the executed application is a 32-bit GUI application, CMD. EXE returns a command prompt before the application is terminated. If it is executed in the Command Script, the new behavior will not occur.8. choice commandChoice uses this command to allow users to enter a single character to run different co
high priority categoryRealtime starts applications in the realtime priority categoryWait starts the application and waits for it to endParameters: these are parameters sent to the command/program.
When the executed application is a 32-bit GUI application, cmd. EXE returns a command prompt before the application is terminated. If
.8. Choice command
Choice uses this command to allow users to enter a single character to run different commands. /C: parameter should be added for use, C: should
specified by Goto, which is generally used with if. For example:
Goto end
: EndEcho this is the end
The label is represented by a string. The row where the label is located is not executed.Choice uses this command to allow users to enter a single character to run different commands. The/C: parameter should be added for use, and C: should be followed by a prompt to enter characters without spaces. Its return code is 1234 ......
For example: choice/C: dimethyl
-bit GUI application, cmd. EXE returns a command prompt before the application is terminated. If it is executed in the Command Script, the new behavior will not occur.8. Choice commandChoice uses this command to allow users to enter a single character to run different commands. The/C: parameter should be added for use, and C: should be followed by a prompt to enter characters without spaces. Its return code is 1234 ......For example: choice/C: dimethyl defra
the start command.Common Intrusion parameters:Minimum window size when MIN startsSEPARATE starts a 16-bit Windows program in a SEPARATE spaceHIGH starts applications in the HIGH priority categoryREALTIME starts applications in the REALTIME priority categoryWAIT starts the application and waits for it to endParameters: these are parameters sent to the command/program.When the executed application is a 32-bit GUI application, CMD. EXE returns a command prompt before the application is terminated.
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.