`

Batch related

阅读更多

1. 启动另一个程序

 

start upload.bat

 

不会等upload.bat执行完再执行下一条, 如此可实现同时执行多条命令.

 

call upload.bat

 

call 命令 是要等调用的程序结束以后才运行下面的命令.

 

2. "FOR" example

 

FOR /F "eol=# tokens=1,2,3,4,5,6,7,8 delims=," %%i IN ('findstr "%1.*%2.*%3" pathConfig.ini') DO (^

    start upload.bat %%j %%n "%%o" "%%p"

)

 

3. CD

 

CD /D %~dp0

 

4. 特殊符号

 

&:第一条命令 & 第二条命令 [& 第三条命令...]

用这种方法可以同时执行多条命令,而不管命令是否执行成功。

 

&&:第一条命令 && 第二条命令 [&& 第三条命令...]

当碰到执行出错的命令后将不执行后面的命令,如果一直没有出错则一直执行完所有命令。

 

||:第一条命令 || 第二条命令 [|| 第三条命令...]

当碰到执行正确的命令后将不执行后面的命令,如果没有出现正确的命令则一直执行完所有命令;

 

5. echo.

echo 后加一点表示换行,真奇葩的设计。

分享到:
评论

相关推荐

    Pro.Spring.Batch.Jul.2011

    All concepts related to it will be explained in detail, with working examples. Table of Contents * Batch and Spring * Spring Batch 101 * Sample Job * Understanding Jobs and Steps * Job Repository and ...

    pro spring batch

    All concepts related to it will be explained in detail, with working examples. Table of Contents * Batch and Spring * Spring Batch 101 * Sample Job * Understanding Jobs and Steps * Job Repository and...

    ANSI-ISA-88.01-1995_Batch_Control_Part_1

    This Part 1 standard on Batch Control defines reference models for batch and related procedure-oriented manufacturing as used in the process industries, and terminology that helps explain the ...

    grails-batch-rest:Grails Spring Batch、CORS、REST API、WebSockets、Spring Security CoreLDAP 演示

    Spring Batch PoC Grails Spring Batch、启用 CORS 的 REST API、Spring Security Core/LDAP 演示先决条件 # GVM - Tool for managing Groovy related frameworks curl -s get.gvmtool.net | bash # install Grails ...

    Large Scale Machine Learning with Spark

    Data processing, implementing related algorithms, tuning, scaling up and finally deploying are some crucial steps in the process of optimising any application. Spark is capable of handling large-...

    超级好的yolo工具资源,分享出来.zip

    相关仓库 Related code 性能情况 Performance 所需环境 Environment 文件下载 Download 训练步骤 How2train 预测步骤 How2predict 评估步骤 How2eval 参考资料 Reference Top News 2022-04:支持多GPU训练,新增各个...

    Designing Data-Intensive Applications.pdf

    New types of database systems (“NoSQL”) have been getting lots of attention, but message queues, caches, search indexes, frameworks for batch and stream processing, and related technologies are ...

    YoloV4-pytorch的源码,可以用于训练自己的模型

    相关仓库 Related code 性能情况 Performance 实现的内容 Achievement 所需环境 Environment 文件下载 Download 训练步骤 How2train 预测步骤 How2predict 评估步骤 How2eval 参考资料 Reference Top News 2023-07:...

    Cloudera-Spark

    Apache Spark is a general framework for distributed computing that offers high performance for both batch and interactive processing. It exposes APIs for Java, Python, and Scala and consists of Spark ...

    微软内部资料-SQL性能优化3

    Lesson 2: Concepts – Batch and Transaction 31 Lesson 3: Concepts – Locks and Applications 51 Lesson 4: Information Collection and Analysis 63 Lesson 5: Concepts – Formulating and Implementing ...

    Big Data Analytics with Spark(Apress,2016)

    This book provides an introduction to Spark and related big-data technologies. It covers Spark core and its add-on libraries, including Spark SQL, Spark Streaming, GraphX, and MLlib. Big Data ...

    Big Data Analytics with Spark 无水印pdf 0分

    This book provides an introduction to Spark and related big-data technologies. It covers Spark core and its add-on libraries, including Spark SQL, Spark Streaming, GraphX, and MLlib. Big Data ...

    Big.Data.Analytics.with.Spark

    This book provides an introduction to Spark and related big-data technologies. It covers Spark core and its add-on libraries, including Spark SQL, Spark Streaming, GraphX, and MLlib. Big Data ...

    Hagel DU Meter 6.20.4628.0 破解补丁(不需断网)

    Several localization-related fixes: problems with switching DU Meter interface back into English, non-localized taskbar deskband menu, etc. Several other minor bug fixes and improvements.

    Mastering Java Machine Learning

    This book will appeal to anyone with a serious interest in topics in Data Science or those already working in related areas: ideally, intermediate-level data analysts and data scientists with ...

    Remote Task Manager

    install that can be used from within a batch file. There is a special configuration file for silent setup: rtm.ini. With this file, you can customize the RTM installation parameters. For example: 1....

    word自动转化为chm

    You can use Word-2-CHM command line when you need Word-2-CHM to create CHM file automatically for you in batch file, or in scheduled task, etc. The command line of Word-2-CHM is as below: Word-2-CHM....

    Unstructured generalized models for the analysis of the inhibitory

    Therefore, the inhibitory term related to the undissociated lactic acid inhibition was added in the growth relation (modified Verlhust model), instead of the production model. The modified Verlhust ...

    Python for Bioinformatics 第二版,最新版

    1.2.5 Online Resources Related to This Book 7 1.3 WHY LEARN TO PROGRAM? 7 1.4 BASIC PROGRAMMING CONCEPTS 8 1.4.1 What Is a Program? 8 1.5 WHY PYTHON? 10 1.5.1 Main Features of Python 10 1.5.2 ...

Global site tag (gtag.js) - Google Analytics