中国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-12 04:59
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » How to limit the value range in a batch file
Printable Version  625 / 2
Floor1 kendos Posted 2009-06-28 04:46
初级用户 Posts 25 Credits 36
For example: get a number between 1 and 9
Please advise
Floor2 Hanyeguxing Posted 2009-06-28 08:02
银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂
Use remainder...


[ Last edited by Hanyeguxing on 2009-6-28 at 08:10 ]
Floor3 lovelymorning Posted 2009-06-29 03:03
初级用户 Posts 72 Credits 131
An if check will do

Greater than the smaller one, less than the larger one... then it's valid input
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023