not specified, the tool onlyA prompt is displayed. /? Displays help messages. Note:The errorlevel environment variable is set to the key index selected from the selected set. The first option to be listedReturns 1, returns 2, and so on. If the key you press is not a valid choice,The tool generates a warning. If the tool detects an error, it returns the 255Errorlevel value. If you press Ctrl + break or Ctrl + C, the tool returns 0The errorlevel value. When the errorlevel parameter is used in a
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. If it is executed in the Command script,This new action will not happen.8. choice command
: When determining the return value using if errorlevel, sort the returned values from high to low ):@ Echo offChoice/C dimethyl/M "defrag, mem, end"If errorlevel 3 goto endIf errorlevel 2 goto memIf errotlevel 1 goto defrag
: DefragC:/DOS/defragGoto end
: MemMemGoto end
: EndEcho good bye
After this batch is run, "defrag, mem, end [d, M, E]?" is displayed. The u
help messages.
Note:The ERRORLEVEL environment variable is set to the key index selected from the selected set. The first option to be listedReturns 1, returns 2, and so on. If the key you press is not a valid choice,The tool generates a warning. If the tool detects an error, it returns the 255ERRORLEVEL value. If you press Ctrl + Break or Ctrl + C, the tool returns 0The ERRORLEVEL value. When the ERRORLEVEL parameter is used in a batch programSort in sequence.
Example:CHOICE /?For CHOICE/c ync
(NOTE: When determining the return value using if errorlevel, sort the returned values from high to low ):@ Echo offChoice/C dimethyl/M "defrag, mem, end"If errorlevel 3 goto endIf errorlevel 2 goto memIf errotlevel 1 goto defrag
: DefragC: \ dos \ defragGoto end
: MemMemGoto end
: EndEcho good bye
After this batch is run, "defrag, mem, end [D, M, E]? ", The use
Daily maintenance of Windows XP is a time-consuming and boring task. If Windows XP is smarter, it would be nice to perform automatic maintenance. Next, we will introduce you to the technique of enabling Windows XP to perform automatic maintenance through the. inf file. The specific content of automatic maintenance can be set at will, but it needs commands. For example, Xcopy is used for file backup, Defrag is used for disk fragmentation, and Del is us
You can use the task plan or the at. EXE command to complete the fragmentation in the task plan. Next, I will take the C drive as an example at a.m.. The specific operation steps are as follows:1. Open notepadProgram, Input: defrag.exe C:-v-F> C: \ Defrag-D.LOGExplanation: Use the defrag.exe command to sort out the C drive, output detailed results, and save the results to the C: \ Defrag-D.LOG in redirectio
space required for database maintenance. In our offline fragmentation of the Exchange Server database (Offline defrag), for a database file of size 20GB (EDB file plus STM file), we need an additional 20GB of space to hold the fragmented database files. In addition, when a database repair is required, usually we will make a backup on the server, these space, also need to consider.Therefore, the capacity of the RAID 5 system that holds the database fi
.
Hidden parameters for Windows XP disk grooming
Windows XP Disk Defragmenter Defrag.exe has a hidden parameter that is not even described in the XP Help file, which is-B, after using it, the Defrag tool will optimize the system's startup files and applications (XP can track how often the application is used to adjust its location on the disk) , so as to achieve the purpose of system optimization. You can enter in the command line prompt window:
CentOS7 Disable Transparent Huge Pages
Transparent Huge Pages (THP) has been introduced since the CENTOS6 version, and this feature is enabled by default, starting with the CentOS7 version. Although THP is intended to improve memory performance, some database vendors recommend shutting down THP (such as Oracle, MARIADB, MONGODB, etc.) directly, which may cause performance degradation.
First check the enabled status of the THP:
[Root@localhost ~]# Cat/sys/kernel/mm/transparent_hugepage/
the GUID is the identifier for the power management scheme and we can execute the command "powercfg-list" to get it. As shown in Figure 1, if we want to remove the Power management scheme named JP, execute the command "Powercfg-delete 53d4577a-49c1-4867-ba59-7fd20316fa2d". (Figure 1)
2, use Defrag to speed up the defragmentation of disk
Defrag.exe is a Windows integrated Disk Defragmenter that provides additional parameters to the Disk Defragment
SQL log will write into log_path/SQL. log, the system log# Will write into log_path/sys. logLog_path:/tmp/kingshard# Log level [debug | info | warn | error], default errorLog_level: debug# If set log_ SQL (on | off) off, the SQL log will not outputLog_ SQL: on# Only log the query that take more than slow_log_time MS# Slow_log_time: 100# The path of blacklist SQL file# All these sqls in the file will been forbidden by kingshard# Blacklist_ SQL _file:/Users/flike/blacklist# Only allow this ip lis
lot of memory resources.
Recommended settings: "disabled ".
7. O O Defrag
This is an instant Detection Service of the well-known disk sorting software O O Defrag. It can automatically monitor disk usage and automatically start when the disk needs to be sorted and the system is idle. Many friends may encounter an error message when starting O O Defrag and cann
+ break or Ctrl + C, the tool returns 0The errorlevel value. When the errorlevel parameter is used in a batch programSort in sequence.
Example:Choice /?For choice/c ync/m ", Press Y, N, or C. "Choice/T 10/c ync/CS/d ySelect 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 ync/M "OK, Press Y, N, or cancel to press C. "The screen displays:Press Y to confirm, N to confirm, or C to cancel. [Y, N, C]?For exampl
help messages.
Note:The errorlevel environment variable is set to the key index selected from the selected set. The first option to be listedReturns 1, returns 2, and so on. If the key you press is not a valid choice,The tool generates a warning. If the tool detects an error, it returns the 255Errorlevel value. If you press Ctrl + break or Ctrl + C, the tool returns 0The errorlevel value. When the errorlevel parameter is used in a batch programSort in sequence.
Example:Choice /?For choice/c ync
: When determining the return value using if errorlevel, sort the returned values from high to low ):@ Echo offChoice/C dimethyl/M "defrag, mem, end"If errorlevel 3 goto endIf errorlevel 2 goto memIf errotlevel 1 goto defrag: DefragC: \ dos \ defragGoto end: MemMemGoto end: EndEcho good byeAfter this batch is run, "defrag, mem, end [D, M, E]?" is displayed. The u
(NOTE: When determining the return value using if errorlevel, sort the returned values from high to low ):@ Echo offChoice/C dimethyl/M "defrag, mem, end"If errorlevel 3 goto endIf errorlevel 2 goto memIf errotlevel 1 goto defrag
: DefragC: \ dos \ defragGoto end
: MemMemGoto end
: EndEcho good bye
After this batch is run, "defrag, mem, end [d, M, E]?" is
value. When the errorlevel parameter is used in a batch programSort in sequence.
Example:Choice /?For choice/c ync/m ", Press Y, N, or C. "Choice/T 10/c ync/CS/d ySelect 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 ync/M "OK, Press Y, N, or cancel to press C. "The screen displays:Press Y to confirm, N to confirm, or C to cancel. [Y, N, C]?For example, the content of test. bat is as follows (NOTE: When d
presses in choices.ERRORLEVEL is set to the offset value of the characters typed by the user in the characters to be selectedIf I run the command: CHOICE/c ync/M "OK, Press Y, N, or cancel to press C. "The screen displays:Press Y to confirm, N to confirm, or C to cancel. [Y, N, C]?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 offChoice/C dimethyl/M "
(NOTE: When determining the return value using if errorlevel, sort the returned values from high to low ):@ Echo offChoice/C dimethyl/M "defrag, mem, end"If errorlevel 3 goto endIf errorlevel 2 goto memIf errotlevel 1 goto defrag: DefragC: \ dos \ defragGoto end: MemMemGoto end: EndEcho good byeAfter this batch is run, "defrag, mem, end [d, M, E]?" is displayed.
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.