[英]how to read content of a file in a environment variable in windows command line?
is there an equivalent in Windows Command to the following command in bash : Windows命令中是否有与bash中以下命令等效的命令:
variable='cat mytextfile'
I found answers on the net, but they use loop or complicated ways... they're is probably a simple way to do it? 我在网上找到了答案,但是它们使用循环或复杂的方法……它们可能是一种简单的方法?
我使用以下命令对我有用
set /p myVar=<myFile.txt
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.