批处理文件可变输出 [英] Batch file variable output
本文介绍了批处理文件可变输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一批纸条,使用程序调用mailsend给我发了一封邮件。
I have a batch scrip that send me a mail using a program call mailsend.
它检查目录和计数的文件和电子邮件比我算出来的10。
It checks a directory and count the files and than email me the count out of 10.
我已经检查了目录,有8的文件。请检查剩下的2。
" I have checked the directory, there are "8" files. Please check remaining "2".
我不能让它显示在一行上。该文本是从一个txt文件,并从另一个计数读取,比加在一起。我不是使用类型A.TXT + b.txt。
I cannot get it to display on one line. The text is read from one txt file and the count from another, than added together. I than use type a.txt + b.txt.
推荐答案
取决于你的code,但很简单的东西可能是:
depends on your code, but something very simple might be:
@ECHO OFF
SET /p iTotal=<"Path-to-directory\a.txt"
SET /p iRemaining=<"Path-to-directory\b.txt"
@ECHO.There are "%iTotal%" files. Please check remaining "%iRemaining%".
请试试:)
这篇关于批处理文件可变输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文