在批处理文件中显示.txt的内容? [英] Display the contents of a .txt in a batch file?
本文介绍了在批处理文件中显示.txt的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我现在正在处理批处理文件,已经完成了我需要做的所有事情,但是我只停留在一点.我使用的程序之一吐出一个日志文件,并将其放置在C:驱动器上的文件夹中.我想要做的是让它读取此.txt文件,并将其作为回声吐回到批处理文件中.
I am working on a batch file right now and I have everything done that I need but I'm stuck at one point. One of the programs I use spits out a log file and I have it place this file on the C:drive in a folder. What I want to do is have it read this .txt and spit that back into the batch file as an echo.
推荐答案
您可以将其放在批处理文件中:
You can put this in your batch file:
type C:\folder\test.txt
这将回显test.txt的内容.
This will echo out the contents of test.txt.
这篇关于在批处理文件中显示.txt的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文