我需要使用MS批处理文件将程序的输出分配给变量.
所以在GNU Bash shell我会用VAR=$(application arg0 arg1).我在Windows中使用批处理文件需要类似的行为.
VAR=$(application arg0 arg1)
有点像set VAR=application arg0 arg1.
set VAR=application arg0 arg1
cmd batch-file variable-assignment windows-console
batch-file ×1
cmd ×1
variable-assignment ×1
windows-console ×1