如何在批处理脚本中声明全局变量?
例子:
测试1.bat:
set testvar=C:\Windows echo %testvar%
现在我应该可以在其他批处理脚本(test2.bat)中使用这个 testvar
测试2.bat:
echo %testvar%
感谢致敬!
command dos batch-file
batch-file ×1
command ×1
dos ×1