China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-27 01:46
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Beginner question: how do simple addition and subtraction in a batch file? View 1,134 Replies 2
Original Poster Posted 2004-01-14 00:00 ·  日本
初级用户
Credits 108
Posts 2
Joined 2004-01-14 00:00
22-year member
UID 15496
Gender Male
Status Offline
If the input is n, but I need to use the value of n-1, is there any simple way?
Floor 2 Posted 2004-01-14 00:00 ·  中国 河北 石家庄 联通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 3 Posted 2004-01-16 00:00 ·  中国 广东 汕头 澄海区 电信
初级用户
老大不小
Credits 270
Posts 37
Joined 2003-12-31 00:00
22-year member
UID 14687
Gender Male
Status Offline
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
C:\>给我$100,0000
Bad command or file name
Forum Jump: