有人可以解释这是如何工作的吗?
@echo off
REM Creating a Newline variable (the two blank lines are required!)
set NLM=^
set NL=^^^%NLM%%NLM%^%NLM%%NLM%
REM Example Usage:
echo There should be a newline%NL%inserted here.
发出:
There should be a newline
inserted here.
我有一个文件"file.txt",其中包含"dir/s/b*.c"的输出
我想在单个变量中写入file.txt的整个内容.
有任何想法吗?