wholesale jewelry la california Speak in detail. Essence Essence Good extra points
3 thoughts on “wholesale jewelry la california BAT file command Daquan”
Leave a Comment
You must be logged in to post a comment.
wholesale jewelry la california Speak in detail. Essence Essence Good extra points
You must be logged in to post a comment.
liquid jewelry cleaner wholesale prices .bat is a batch processing file under the DOS
.cmd is another batch file of the NT kernel command line environment
batch processing commands
batch processing files Or batch processing procedures are a text file containing several MS-DOS commands, extended names .bat. When the name of the processing program under the command prompt, the MS-DOS group executes the command in this batch of processing programs.
The commands that can be used under the command prompt can be used in batch processing procedures. In addition, the MS-DOS command below is specifically used in batch processing procedures.
===========
M common commands
eCho,@, call, pause, reM (Tips: :: replaced REM) It is the most commonly used commands used by batch files, and we start to learn from them.
==== Willsort to compile ===========
First of all, @ not a command, but a special mark of DOS batch processing In the shielding command line, the following is some special markings that may see
in the DOS command line or batch processing:
cr (0d) command line ending character Character guidance
Space (20) commonly used parameter definition
tab (09); = unused parameter definition symbol
copy command File connection n "" String Breeding
| Command pipeline
u003C> >> File redirect direction of the file
@ command line back to display shield
N: Batch Tip Tag Guidance
% batch processing variable guide symbol
second, :: can indeed play an annotation effect of ReM, and it is more concise and effective; but there are two points to pay attention to:
The first, except :: Anymore: The character line at the beginning is regarded as a label in the batch processing, and all the contents of the subsequent neglect are just in order to follow the normal label area r r r r r r r r r r
, it is recommended to use the label that cannot be recognized by GOTO, that is, in: a special symbol with a non -letter number.
Second, unlike ReM, the characters after :: It will not be displayed, whether or not to open the command line to revealed the status of the command line, because the command interpreter does not think he is a
. In this regard, REM will be compared in some occasions: : More applicable; in addition, REM can be used in config.sys files.
================================================================================================================================================================================================ n
eCho's Indicates that the characters after this command
echo OFF indicates that all the commands run after this statement do not show the command itself
@表示 e e e e e e, but it is added to the forefront of each command line. , Indicate that the command line of this line does not show this line (can only affect the current line).
call calls another batch file (if you do not use the call and directly call other batch files, then the current file will not be returned after the batch processing file is executed and the current file of the current file is followed).
PAUSE runs this sentence to suspend the execution of the processing and displays the prompt of the Press Any Key Key to Continue on the screen. ), Not executed, just give yourself reference (equivalent to comments in the program).
==== Willsort Editing =====
The description here is more chaotic. ----------------------rnECHOrnrn当程序运行时,显示或隐藏批处理程序中的正文。 It can also be used to allow or prohibit the recovery of commands.
Is when running batch processing procedures, MS-DOS generally displays commands in the (back) batch process on the screen.
It using the Echo command to turn off this function.
grammar
echo [on | off]
If to display a command with the ECHO command, the following syntax can be used:
echo [Message]
Parameters
on | off
specifies whether the replacement of the command allows the command. To display the current Echo settings, you can use the Echo
command without parameters.
message
specifies the text that MS-DOS displayed on the screen. rnrn-------------------rnrnCALLrnrn从一个批处理程序中调用Another batch process is not suspended without the first batch.
grammar
Call [drive:] [Path] FILENAME [BATCH-]
Parameters
n [Drive:] [PATH] FILENAME
The names of the batch process to be called and their storage are specified. The file name must be used as an extension.
batch-
Plip information required for specified batch processing procedures. rnrn-------------------------------rnrnPAUSEr n
The execution of the processing process and displaying a message, prompting the user to continue the execution of the arbitrary key. This command can only be used in the batch
.
grammar
PAUSE
R
In batch files or config.sys. You can also use the REM command to block the command (in config.sys
, you can also use a segment (;) instead of the REM command, but it cannot be replaced in the batch processing file).
grammar
Rem [string]
parameter
nstring
annotation.
=======================
example 1: Edit a.bat file with edit, enter the following content The deposit is C: A.BAT. After performing this batch of processing files, it can be implemented: all files in the root directory are written into A.TXT,
will start UCDOS and enter WPS and other functions.
The content of the batch processing file is: command annotation:
@ECHO OFF does not display follow -up command lines and current command lines
dir C:*.*> A .txt write the list of C drive files into A.TXT
Call C: ucdosucdos.bat to call UCDOS
Echo. Hello, "Hello"
PAUSE suspension, waiting for the button to continue
Rem is ready to run WPS comments: ready to run WPS
CD UCDOS to enter UCDOS directory
WPS Run wps
The parameters of batch file
You can use a parameter (equivalent to the command line parameters of the DOS command) like the C language, which requires a parameter representation "%".
%[1-9] represents the parameter. The parameter refers to a string separated by a space (or TAB) after the file name is added when running the file. Variables can be represented by%0 to%9,%0 table
The batch processing command itself, and other parameter string is represented by%1 to%9.
example 2: C: There is a batch of processing files f.bat under the root directory, and the content is:
@echo off
format %1
If C:> F A:
, when you execute F.BAT, %1 means that A:, so format %1 is equivalent to format a:, so the above command is actually executed by Format A:
example 3: C: The following batch of processing files are T.BAT, and the content is:
@echo off
type %1
type %2
then running C:> T a.txt B.txt
%1: Represents A.txt
%2: indicates b.txt
Display the contents of the A.TXT and B.txt files.
==== Willsort to compile =============
The parameters are also used as variables in batch processing, so the same percentage number is also used As a guidance symbol, the relationship between the number of the number composition of the number composition in 0-9. The relationship between the reference symbol and the parameter (e.g.) (eg, the%1 and A:) in the article is similar to the relationship between the variable pointer and the variable value value When we want to quote the eleventh or more parameters, we must move the DOS's ginseng
to count the starting pointer. The shift command is acting as the role of this mobile pointer. To the next parameter, the pointer operation in the C language. The icon is as
under:
The initial state, cmd is the command name, you can use%0 to reference
cmd arg1 arg2 arg3 ARG4 ARG5 ARG6 ARG7 ARG8 ARG9 ARG10
^ ^ ^ ^ ^ ^ ^ ^
| | | | | | |
%1 %2 %3 %4 %4 % 5 %6 %7 %8 %9
After 1 shift, CMD will not be cited
cmd arg1 arg3 arg4 arg5 arg6 arg8 arg9 arg10
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ distance n After 2 shifts, ARG1 was also abandoned, and the %9 finger was empty. There was no reference significance
cmd ARG1 ARG2 ARG4 ARG5 ARG6 ARG8 ARG9 ARG10
^ ^ ^ ^ ^ ^ ^
| | | | | | |
%0 %1 %2 %3 %5 %6 %7 %8 %8
n. Nothing does not support Shift's inverse operation. Only in the NT kernel command line, Shift supports/n parameters, you can use the first parameter as the benchmark
================
Special commands
if Goto Choice for is a more advanced command in batch files. If these are these You are very skilled in you, you are an expert in the processing document.
. IF is a conditional statement to determine whether it meets the prescribed conditions to determine the execution of different commands. There are three formats:
1, if [not] "parameter" == "string" string "to be executed
The parameters are equal to (not to wait, the same below) The specified string will be established and runs the command, otherwise run the next sentence.
example: if "%1" == "a" format a:
=== Willsort The description of this point is:
if [not] string1 == String2 Command
The following points to pay attention to:
1. But it is just a "air defense" character used
2. String1 may not be parameters. It can also be environmental variables, circular variables, and other string constants or variables After string2, a space can form an effective command line
====================================================================================================================================================================================================================================================== R n2, if [not] exist [path] file name to be executed
If there are specified files, the condition is established and the command command is run, otherwise run the next sentence.
, as: if exist c: config.sys type C: config.sys n means that if there is a c: config.sys file, it displays its content.
******* Willsort The device that has been loaded usually has:
aux, prn, con, nul
Com1, com2, com4
LPT1, LPT3, LPT4
xmsxxx0, emmxxxxx0
a: b: c: ...,
Clock $, config $, dblbuff $, ifs $ HLP $
The specific content will be slightly different due to the difference in the hard software environment. At this time, the following three points need to be guaranteed:
1. The device does exist (except for software virtual devices)
2. The device driver has been loaded (AUX, PRN and other standard devices are defined by the system default) ) R n3. The device is ready (mainly refer to a: b: ..., com1 ..., lpt1 ...,)
Review the device loaded in your system
It, in the DOS system, the device is also considered a special file, and the file can also be called a character device; The handle
(handle) is managed, the handle is the name, similar to the file name, but the handle is not applied to disk management, but it is used in memory management. Mill out of the handle that can be referenceable.
================================
3, if u003C3 number> commands to be executed
This DOS program will return a digital value after running. The return value of the judgment program
, determine different commands according to different returns values (the return value must be arranged in order from large to small). If the return value is equal to the specified number, the condition is set
, and runs the command, otherwise run the next sentence.
. If IF 2 GOTO X2
=== Willsort compiles ==========
The order arrangement is not necessary, but only the habit of executing the command as GOTO. When using Set as the execution command, it is usually arranged from small to Dushun
. For example Use the following order:
if 1 set el = 1
if 2 set el = 2
t el = 3
if 4 set el = 4
if nif 5 set el = 5
...
of course, you can also use the following cycle to replace. 7 8 ...) Do if %% e set eL = %% E
The more efficient and concise usage, you can refer to another article I wrote about the article
r The reason why this phenomenon appears is that the judgment condition of the IF comparison code is not equal, but is greater than equal to the jump characteristics of GOTO, from small to large sorting Jumping out; and due to the "duplicate" assignment characteristics of the set command, from large to small sorting will cause a smaller return code "covering" larger return code.
Command is also an effective command line, but it is only the Command explanation of the command line = as the command line cut into the symbol and ignore
============
. The GOTO batch file runs here to jump to the label specified by GOTO (label is label, the label uses: then follow the standard string to come to the standard string At the definition), the GOTO statement is generally used with
, and different command groups are executed according to different conditions.
, such as:
goto end
: end
echo this is the end
"String" definition, the label is not executed.
=== Willsort : Use the mileage jump that can be implemented, and combined with IF to implement the conditional branch of the execution process, multiple IFs can implement the command of the command. Large -scale and structured commands can achieve function functions in high -level languages. The following is a comparison of batch processing and C / BASIC in language
rngoto
where can i buy wholesale fashion jewelry For more information on a command, type the help command name
assoc display or modify the file extension associated.
at commands and programs running on the computer.
attrib display or change file attributes.
bread settings or clearing the extension CTRL C check.
cacls display or modify the access control list (ACLS).
call calls this one from another batch process.
CD display the name of the current directory may change it.
CHCP display or set the number of activity code pages.
CHDIR displays the name of the current directory may change it.
chkdsk check the disk and display the status report.
chkntfs display or modify the start -up time disk check.
CLS clear the screen.
cmd open another Windows command explanation program window.
color sets the default console foreground and background color.
comp compares the contents of two or two sets of files.
Compact displays or changes the compression of files on the NTFS partition.
convert convert the FAT roll to NTFS. You cannot convert
The current driver.
copy copy at least one file to another position.
date display or setting date.
DEL deletes at least one file.
DIR displays the file and subdirectory in a directory.
diskcomp compares the contents of the two floppy disks.
diskcopy copy the contents of a soft disk to another.
DOSKEY edit command lines, call the Windows command and create a macro.
echo display the message, or open the command back or closed.
endLocal end the localization of environmental changes in the batch file.
erase delete at least one file.
exit exit the cmd.exe program (command interpretation program).
FC compares two or two sets of files, and display
different places.
Find search for text string in the file.
Findstr search for string in the file.
FOR runs a specified command for each file in a file.
format formatting disk for use with Windows.
ftype display or modify file types for file extension association.
goto point the Windows command interpretation program to batch processing program
.
Graftabl enables Windows to display the image mode
extended character set.
help provides help information for the Windows command.
IF Conditional processing in batch processing procedures.
Label created, changed or deleted the scroll label.
md to create a directory.
mkdir creates a directory.
mode configuration system equipment.
more displays a result screen at a time.
move moves the file from one directory to another.
Path display or set the search path for executable files.
PAUSE suspension of file processing and displaying messages.
popd to restore the previous value of the current directory saved by pushd.
print print text file.
prompt change the Windows command prompt.
Pushd to save the current directory, and then change it.
RD delete the directory.
Recover recovers readable information from the problematic disk.
RM record batch files or comments in config.sys.
RN renamed files.
RENAME renamed files.
Replace replace files.
RMDIR delete the directory.
SET display, setting, or deleting Windows environment variables.
SetLocal starts the localization of environmental changes in the file.
shift replacement files in the batch file can replace the position of the parameters.
sort classify the input.
start start another window to run the specified program or command.
subst to associate the path with a driver number.
time display or setting system time.
tital set the window title of CMD.EXE session.
Tree shows the directory structure of the driver or path in a graphic mode.
type display the content of the text file.
ver display the Windows version.
verify told Windows whether the file has been correct
This to the disk.
vol display disk curls and serial numbers.
xcopy Copy file and directory tree. rnappwiz.cpl------------添加删除程序rnrncontrol --------用户帐户设置rnrncleanmgr-- -----垃圾整理rnrnCMD--------------命令提示符可以当作是Windows 的一个附件,Ping,Convert 这些不能在图形环境下The function used should be done with the help of it.
cmd ------ JVIEW check the Java virtual machine version.
Command ------- The system is called built-in NTVDM, a DOS virtual machine. It is completely a virtual environment similar to Virtual PC, which is not contacted with the system itself. When we run the DOS program under the command prompt, it is actually automatically transferred to the NTVDM virtual machine, which has nothing to do with the CMD itself.
calc ----------- starting the calculator
chkdsk.exe ----- CHKDSK disk check
compmgmt.msc --- Computer management
conf ----------- start
Control ----- User Account permission Settings
nDevmgmt .msc --- Equipment Manager
diskmgmt.msc --- Disk Management Practical Procedure
DFRG.MSC -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
DRWTSN32 ------ System Doctor
dvdplay ------- Start Media Player
dxdiag ------------------------------------------------------------------- DirectX Tool
gpedit.msc ---------------------
gpupdate /target: computer /Force forced brush group strategy
eventvwr. exe ----- Event Viewer
explorer ------- Open the resource manager
logoff ---------------------- nrnlusrmgr.msc----本机用户和组rnrnmsinfo32---------系统信息rnrnmsconfig------- -The system configuration utility
net start () ---- Start the service
net stop () ---- stop the service
notepad--------打开记事本rnrnnusrmgr.cpl-------同control ,打开用户帐户控制面板rnrnNslookup----- --IP地址侦测器rnrnoobe/msoobe /a----检查XP是否激活rnrnperfmon.msc----计算机性能监测程序rn rnprogman--------程序管理器rnrnregedit----------注册表编辑器rnrnregedt32------ -Registration form editor
Regsvr32 /u *.dll ---- Stop DLL file operation
route print ------- View the route table
ronon CE -P ---- 15 seconds to shut down
RSOP.MSC --------------------
Rundll32.exe runll32.exe %%. DLL, ImageView_ ---- Start a blank Windows picture and fax viewer
SECPOL.MSC ------- Local security strategy
Services.msc --- Local service Set
sfc /scannow ----- Start the system file checker
sndrec32 ---------
ntaskmgr -------------------------------任务管理器(适用于2000/xp/2003)rnrntsshutdn-------60秒倒计时关机命令rnrnwinchat--------XP自带局域网聊天rnrnwinmsd---------系统信息rnrnwinver-----显示About Windows 窗口rnrnwupdmgr--- -------- Windows Update
genuine gold jewelry wholesale I have the BAT command Daquan e -book, but it cannot be copied above. There are examples of interpretation of hundreds of commands. If you want, leave your mailbox, I will send you it
bat batch processing tutorial
ok, never class and get to business Batch processing, also known as batch script, English translation is BATCH, and the first three letters taken by batch file suffix BAT. Its composition does not have a fixed format, as long as the following one is observed: each line can be regarded as a command, each command can contain multiple commands, starting from the first line to the end of the line, until the end of the line, its operation platform is running. It's dos. A very distinctive characteristics of batch processing are: convenient, flexible, powerful, and high degree of automation. I don't want to let myself write boring, because the question of the code (the content of the batch process is a code?) The question is boring. Few people can calm down the code full of the screen. So I will use many simple and practical examples to let friends who read this tutorial experience the charm of the four shots of approval, feel its ancient and strange personality, and unknowingly fall in love with batch processing (halo, why is it love again? What is the relationship between approval and love? Answer: No!). Besides, "Gossip": To learn batch processing, the DOS foundation must be solid! Of course, the flexibility of the brain is also an important aspect.
If, first, give the most Easy batch script for everyone to get familiar with it, save the following lines of commands to name.bat, and then execute Similar ways):
ping sz.tencent> a.txt
ping sz1.tencent >> a.txt
ping sz2.tencent >> a.txt nping sz3.tencent >> a. txt
ping sz4.tencent >> a.txt
ping sz5.tencent >> a.txt
ping sz6.tencent >> a.txt nping sz7.tencent >> a.txt
exit
can you all understand? Is it very easy? But its role is very practical. After this batch is performed, you can create a file called A.TXT on your current disk. The information recorded in it can help you quickly find the fastest -speed QQ server, so as Stay away from the painful process of "transfer from the server". The meaning of the> here is to put what the previous command gets to the place given to the back, the role of >>, and> the same is to add the results to the result of the results obtained from the previous party. A line, and the results obtained by the previous line will be retained, so that this A.TXT file can become bigger and bigger (think of how to destroy it?). By The Way, this batch can also be combined with other commands to make a completely automated judgment server speed. After execution, it directly displays the fastest server IP. Is it very cool? It will be introduced in detail later. rn例二、再给出一个已经过时的例子(a.bat):rn@echo offrnif exist C:Progra~1TencentAD*.gif del C:Progra~1TencentAD*.gif
a.bat
Why do you say this is an outdated example? It is very simple, because there are almost no one with an advertisement QQ (KAO, my QQ also shows a friend of friends !!!), so it is hardly used. But it used to have its role that could not be smaller: delete the QQ advertisement to make the dialog box clean. The address used here is the default installation address of QQ. The default batch file is named a.bat. Of course, you can modify it by yourself according to the situation. The IF command is used in this script, so that it can achieve the effect of timely judgment and deleting advertising pictures. You only need to turn off the DOS window after executing the command and force it forcibly at Ctrl C. Picture (QQ also continuously checks whether your advertisement is deleted). Of course, this script takes up a little memory, haha.
example three, use batch scripts to check whether the ice is the ice. The content of the script is as follows:
@echo off
netstat -a -n> a.txt
Type a.txt | Find "7626"