中国DOS联盟论坛

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-16 08:44
47,813 topics / 349,903 posts / today 0 new / 48,258 members
DOS疑难解答 & 问题讨论 (解答室) » Beginner question: how do simple addition and subtraction in a batch file?
Printable Version  1,168 / 2
Floor1 ddy1975 Posted 2004-01-14 00:00
初级用户 Posts 2 Credits 108
If the input is n, but I need to use the value of n-1, is there any simple way?
Floor2 willsort Posted 2004-01-14 00:00
元老会员 Posts 1,512 Credits 4,432
Floor3 哑巴 Posted 2004-01-16 00:00
初级用户 Posts 37 Credits 270
The following is quoted from willsort's post on 2004-1-14 14:16:18:

    The most thorough and also most boring way is to use debug's assembly subcommand, write the assembly statements that handle input and output into a temporary file through a batch file, and then use debug to generate a dedicated .com file.













Support support support support support support support support support support support support support support support support support support
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023