![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-12 20:50 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » How do you use numeric variables in .bat (not string variables) |
| Printable Version 1,147 / 1 |
| Floor1 winddeity | Posted 2003-11-05 00:00 |
| 初级用户 Posts 62 Credits 311 | |
|
For example, if I want to set a variable count=5, and then make count-1 each time through the loop, how should I do it?
set count=5 set count=%count%-1 then it becomes count=5-1 instead of the count=4 I want What should I do? |
|
| Floor2 icebat | Posted 2009-12-25 11:33 |
| 初级用户 Posts 11 Credits 20 | |
|
Check the parameters for SET. There is a /A for calculation.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |