Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们有一个需求,我们定义了一组通用参数,并使用它各种批处理文件。对于 Unix,我们过去常常在一个脚本中定义,并将此脚本包含在我们想要使用参数的其他脚本中。我们批量有这样的功能吗?
你可以建立一个 settings.bat
set global1=On set global2=C:\temp
并将其包含在您的任何脚本中call settings.bat
call settings.bat