warning. If the tool detects an error, it returns the errorlevel value of 255. If you press Ctrl + break or Ctrl + C, the tool returns the errorlevel value of 0. When the errorlevel parameter is used in a batch program, the parameters are sorted in descending order.
Example:
Choice /?
For choice/c ync/m ", Press Y, N, or C. "
Choice/T 10/c ync/CS/d y
Select a for choice/c AB/M "option 1 and B for option 2. "
Choice/c AB/N/m "option 1 select a, option 2 select B. "
If I run the command: choice/c
GUI applications that are used to execute parameters transmitted to the command/program, CMD. the command prompt is returned when the application is terminated. If it is executed in the Command Script, the new behavior will not occur. 8. choice command choice uses this command to allow users to enter a 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
. "Example: The contents of Test.bat are as follows (* * Note that when you use if errorlevel to determine the return value, you want to sort by the return value from highest to lowest * *):@echo offchoice/c dme/m "Defrag,mem,end":: if errorlevel 3 goto end::if ERRORLEVEL 2 goto mem::if errorlevel 1 goto Defra G:defragc:\dos\defraggoto End:memmemgoto End:endecho Good byeAfter this batch is run, the defrag,m
to low ):
@ Echo off
Choice/C dimethyl/M "defrag, mem, end"
If errorlevel 3 goto end
If errorlevel 2 goto mem
If errotlevel 1 goto defrag
: Defrag
C:/DOS/defrag
Goto end
: Mem
Mem
Goto end
: End
Echo good bye
After this batch is run, "defrag, mem, end [d, M, E]? ", The user
]?
For example, the content of test. bat is as follows (NOTE: When determining the return value using if errorlevel, sort the returned values from high to low ):
@ Echo off
Choice/C dimethyl/M "defrag, mem, end"
If errorlevel 3 goto end
If errorlevel 2 goto mem
If errotlevel 1 goto defrag
: Defrag
C:/DOS/defrag
Goto en
determining the return value using if errorlevel, sort the returned values from high to low ):
@ Echo off
Choice/C dimethyl/M "defrag, mem, end"
If errorlevel 3 goto end
If errorlevel 2 goto mem
If errotlevel 1 goto defrag
: Defrag
C: \ dos \ defrag
Goto end
: Mem
Mem
Goto end
: End
Echo good bye
After this batch is r
Doscommand line choice command usage details _ dos choice command usage instructions, choice_dos
Doscommand-line choice command usage details mainly introduce how to use the doscommand-line choice command. For more information, see.Choice command
You can run different commands by entering a single character. The/c: parameter should be added for use, and c: should be followed by a prompt to enter characters without spaces. The return code is 1234 ....... This command may be unavailable in some Wi
screen will show:Confirm Press Y, no press N, or cancel please press C. [Y,n,c]?Example: The contents of Test.bat are as follows (note that when you use if errorlevel to determine the return value, you want to sort by the return value from highest to lowest):@echo offCHOICE/C dme/m "Defrag,mem,end"if errorlevel 3 goto endif errorlevel 2 goto MEMif errorlevel 1 goto defrag:d EfragC:\dos\defragGoto END: MemMemGoto END: Endecho Good byeAfter this batch
Terminology: The phone's own memory and mobile cardMobile RAM, ROM, and memory cards.First explain the relationship between the phone's RAM, ROM, and memory card. Both the RAM and ROM of the phone belong to the semiconductor memory. The ram of the cell phone is the memory that we often say, it is the abbreviation of ra
parameters for transmission to the command/program
The application that executes is a 32-bit GUI application when CMD. EXE returns a command prompt without waiting for the application to terminate. If executed within a command script, the new behavior does not occur.
8.choice command
Choice Use this command to let the user enter a character to run different commands. Use should be Plus/C: parameters, C: After the prompt should be written to enter the characters, no spaces between. It has a r
1.PRMFile structure
The PRM file consists of six components based on the different information contained. Here we only discuss the three components closely related to the memory space ing.
Segments... End
Define and divide all available memory resources of the chip, including program space and data space. Generally, we define a program space as ROM and a data space as Ram. However, these names are not keywords reserved by the system and can be modi
Memory ManagementIf you encounter the most important problem in writing a Windows CE program, it must be a memory problem. A wince system may only have 4 mb ram, which is very small compared to a PC, because the standard configuration of the PC has reached 128 MB or more. As a matter of fact, the memory of the machine running wince is very insufficient, so sometimes it is necessary to sacrifice the overall performance of the program to save memory whe
Turn others, can not find the original source, feel the author. Storage principle:
In order to facilitate readers at different levels to understand the basic article, so I first to introduce a lot of users know things. The main function of RAM is to store code and data for the CPU to call when needed. But the data is not as simple as a bag of rice, but more like a library with a Plaid bookshelf to store books, not only to put in and to be able to make
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 test. bat is as follows:@ Ech
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 the script
This action is not performed in this tutorial.8. Choice commandChoice uses this command to allow users to enter a single character to run different commands. /C: parameter should be added for use, C: should be written later
It indicat
. 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. It returns a code of 1234...
...For example: choice/cme defrag, mem, endWill displayDefrag, mem, end [D, M, E]?Sample:The content of Sample. bat is as follows:@ Echo offChoice/cme defrag
. 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 in the file:; Context_defrag.inf; Adds
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. For exampleIf 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,C: Enter the characters that can be
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 command prompt before the
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.