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-26 15:10
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » In batch files, how many parameters can %1 %2 %3... go up to? View 1,001 Replies 3
Original Poster Posted 2003-09-04 00:00 ·  中国 湖北 武汉 联通
初级用户
Credits 182
Posts 28
Joined 2002-12-13 00:00
23-year member
UID 501
Gender Male
Status Offline
In batch files, how many parameters can %1 %2 %3... go up to?
Once it gets to %10 it's no longer the real value, it changes.
%10 becomes 000
%11 becomes 001

[em24][em24]
Floor 2 Posted 2003-09-04 00:00 ·  中国 湖北 武汉 联通
初级用户
Credits 182
Posts 28
Joined 2002-12-13 00:00
23-year member
UID 501
Gender Male
Status Offline
I completely forgot.
Found the answer. Ha
Floor 3 Posted 2003-09-05 00:00 ·  中国 河北 石家庄 联通
银牌会员
★★★
Credits 1,833
Posts 648
Joined 2002-11-08 00:00
23-year member
UID 197
Gender Male
Status Offline
If you want to get more parameters, you can use the shift command.
Floor 4 Posted 2003-09-05 00:00 ·  中国 湖北 武汉 联通
银牌会员
★★★
Credits 1,681
Posts 512
Joined 2003-08-02 00:00
22-year member
UID 7953
Gender Male
Status Offline
Somehow somewhere I've got to choose.
No matter if it is win or lose.
Forum Jump: