Discover batch script if statement, include the articles, news, trends, analysis and practical advice about batch script if statement on alibabacloud.com
Files with the extension BAT (or CMD in NT/2000/XP/2003) are batch files.
===== Gjr note ========================================== =====. Bat is a batch processing file under DOS. CMD is another type of batch file in the NT kernel command line
Typical advanced DOS batch processing applications:
Windows Programming
Files with the extension BAT (or CMD in NT/2000/XP/2003) are batch files.
First, the batch processing file is a text file. Each line of this file is a DOS command (most of the
Files with the extension bat (or cmd in nt/2000/xp/2003) are batch files.
. Bat is a batch processing file under dos
. Cmd is another type of batch file in the nt kernel command line environment.
In a broader sense, unix shell scripts, as well as
At the beginning of the article, let's review how to open the MongoDB database with the cmd Command window, with the following command:Open the MongoDB databaseCD D:\Program Files\mongodb\binmongod " D:\Program Files\mongodb\data " See the above
Converting a DOS batch file to a shell script Quite a few programmers who learn scripts on a PC are running DOS. In fact, the Disabled DOS batch file language can also write some powerful scripts, although they generally need to rely on external
own understanding: With go separate, is equivalent to in different query window execution SQL, go requires a separate commit transactionRefer to the blog post when
I. Scripting Basics1.USE statementsSets the current database.2. Declaring variablesSyntax: DECLARE @ variable name variable typeAfter a variable is declared, the value of the variable is null before assigning a value to the variable.Assigning a
Call
Calls another batch program from one batch program and does not terminate the parent batch program. The call command accepts the label used as the calling target. If you use call outside of a script or batch file, it will not work on the
Call
From one batch
Program Call another batch processing program without terminating the parent batch processing program. The Call Command accepts the labels used as the call target. If a call is used outside a script or batch file, it does not
Address: http://zhaohaolin.iteye.com/blog/1171031
PrefaceRecent discussions on batch processing technology are hot, and there are also a lot of good batch processing Program Publishing, but without some knowledge, I am afraid it is difficult to
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.