batch
小猪老师 发表于 2020-06-17 16:27浏览次数:
批处理命令是恢复控制台的一部分。它用于在一个文件中执行一系列命令。
The batch command is part of the Recovery Console. It is used to execute a series of commands within a file.
目录:
1 batch 运行系统环境
2 batch 语法
3 batch 示例
batch 运行系统环境
batch 语法
执行文本文件中指定的命令。
BATCH Inputfile [Outputfile]
Inputfile
|
指定包含要执行的命令列表的文本文件。
|
Outputfile
|
If 指定,包含指定命令的输出。 如果未指定,输出将显示在屏幕上。
|
批处理不能是Inputfile中包含的命令之一。
Executes commands specified in a text file.
BATCH Inputfile [Outputfile]
Inputfile
|
Specifies the text file that contains the list of commands to be executed.
|
Outputfile
|
If specified, contains the output of the specified commands. If not specified, the output is displayed on the screen.
|
Batch cannot be one of the commands included in the Inputfile.
batch 示例
batch myfile.txt
上面的批处理命令示例运行myfile.txt文件中的每个命令,并将输出显示在屏幕上。
batch myfile.txt
The above batch command example runs through each of the commands in the myfile.txt file and display the output to the screen.