Summary of common commands for batch processing

Source: Internet
Author: User
Tags goto
Source batch processing commonly used commands summary: http://blog.csdn.net/z22050519/article/details/17019137 batch processing _ Baidu Encyclopedia: http://baike.baidu.com/view/80110. HTM What is batch processing

Batch processing (Batch), also known as a batch script. As the name suggests, batch processing is the batch processing of an object. The batch file has an extension of bat.

The most common batch processing currently consists of two categories: DOS batch processing and PS batch processing. PS batch processing is based on powerful image editing software Photoshop, used to batch processing pictures of the script, while the DOS batch is based on DOS command, used to automatically batch execute DOS commands to implement a specific operation of the script. The DOS batch is what we're talking about here.

Batch processing is a simplified scripting language that is applied to DOS and Windows systems and is interpreted by DOS or a command interpreter (usually Command.com or CMD.EXE) embedded in a Windows system. Similar to a shell script in Unix. The simplest example of a batch file with an extension of. bat or. cmd is to write the various commands that are used on the command line. More complex situation, need to use If,for,goto and so on Command control program's running process, like c,basic and so on intermediate language. If more complex applications are required, the use of external programs is necessary, including the external commands provided by the system itself and the tools or software provided by the third party.

batch file, or batch process, is a common text file composed of DOS commands, which can be edited directly with Notepad or created with DOS commands, and can be edited with DOS text editor Edit.exe. Under command prompt, type the name of the batch file, or double-click the batch file, and the system will call Cmd.exe to run the batch program. In general, each command occupies one line, and of course you can use a number of commands with specific symbols (such as:&, &&, |, | | And so on) are delimited and written to the same line; in other cases, higher orders, such as if, for, and so on, occupy a few lines or even a few Baisi lines of space.

When the system interprets a batch program, it first scans the entire batch program, and then steps through all the commands from the first line of code until the end of the program or the Exit command or an unexpected exit. Introduction to Batch commands echo rem pause call start goto set batch-process symbol profile back up mask @ Redirect 1 > >> redirect 2 < pipe symbol | Escape character ^ Logical command includes:&, &&, | | Common DOS COMMAND statement structure if statement (selection structure) string comparison existence judgment definition for statement (loop structure) switch/l switch/F switch//////////////////////////////////////// Quantity user Variable reference parameter direct transmission indirect transmission difference return value User Interactive window sound control ASCII code

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.