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.
如何将特定字符串插入到 Dos 脚本中的特定位置?
我搜索它不成功,所以如果我之前错过了类似的主题,我很抱歉,无论如何:非常感谢!
好吧,这在很大程度上取决于您的意思。通常会使用批处理文件的参数,因此
myscript.cmd parm1 parm2
您可以使用%1获取 parm1 和%2获取 parm2
%1
%2