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 11:01
中国DOS联盟论坛 » 其它操作系统综合讨论区 » What is the function of "%*"? View 3,745 Replies 33
Floor 31 Posted 2008-01-31 11:17 ·  中国 江苏 苏州 电信
初级用户
Credits 47
Posts 46
Joined 2008-01-17 19:01
18-year member
UID 108862
Gender Male
Status Offline
Who can give another example of an extension other than %1?
Floor 32 Posted 2008-02-14 14:39 ·  中国 浙江 温州 乐清市 电信
初级用户
★★
Credits 109
Posts 52
Joined 2006-01-03 22:47
20-year member
UID 48392
Status Offline
Can it support %* regardless of the file extension, related to the program.
Some programs, such as rar as mentioned by fastflz, support (and most of the time must use) multiple parameters, so use %* instead of each parameter after the program executable file.
Like notepad can only support one parameter (I guess, not sure if it's correct?), so there's no need to use parameters like %2 or higher.
To be honest, I really admire fastflz, so patient, hard work. Happy New Year!
Floor 33 Posted 2008-02-14 14:44 ·  中国 浙江 温州 乐清市 电信
初级用户
★★
Credits 109
Posts 52
Joined 2006-01-03 22:47
20-year member
UID 48392
Status Offline
But then again, why is the parameter for the executable file itself in the registry %1? It should be %0. Confused...
Floor 34 Posted 2009-12-01 15:52 ·  中国 北京 联通
初级用户
Credits 39
Posts 27
Joined 2007-09-10 17:46
18-year member
UID 97038
Gender Male
Status Offline
Learn a little, but still a bit confused
Forum Jump: