Board logo

标题: .bat里面怎样使用数据变量(不是字符变量) [打印本页]

作者: winddeity     时间: 2003-11-5 00:00    标题: .bat里面怎样使用数据变量(不是字符变量)

比如想设个变量count=5,然后每循环一次count-1,应该怎么做啊?
set count=5
set count=%count%-1就变成了count=5-1而不是我想要的count=4
怎么办?
作者: icebat     时间: 2009-12-25 11:33
查看 SET 的参数    有个 /A 是计算