Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Batch file 通过批处理文件读取文本文件内容并在标准输出上显示_Batch File - Fatal编程技术网

Batch file 通过批处理文件读取文本文件内容并在标准输出上显示

Batch file 通过批处理文件读取文本文件内容并在标准输出上显示,batch-file,Batch File,我已经创建了一个文件file1.txt,file1.txt的内容是“abcde”。 我想读取file1.txt的内容,并通过批处理文件在标准输出上打印。 如何读取文件内容并通过批处理文件在标准输出上打印 @echo off type file1.txt

我已经创建了一个文件file1.txt,file1.txt的内容是“abcde”。 我想读取file1.txt的内容,并通过批处理文件在标准输出上打印。 如何读取文件内容并通过批处理文件在标准输出上打印

@echo off
type file1.txt