中国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-11-29 02:55
47,820 topics / 349,938 posts / today 0 new / 48,300 members
其它操作系统综合讨论区 » What is the function of "%*"?
Printable Version  5,057 / 33
Floor16 fastslz Posted 2008-01-30 20:47
铂金会员 Posts 2,315 Credits 5,493 From 上海
notepad.exe %2 这里没必要%1以上啊
Floor17 wujingyi Posted 2008-01-30 20:49
初级用户 Posts 46 Credits 47
Floor18 wujingyi Posted 2008-01-30 20:50
初级用户 Posts 46 Credits 47
Do you have QQ? Can you leave the number?
Floor19 wujingyi Posted 2008-01-30 20:54
初级用户 Posts 46 Credits 47
If it is more than %1, what should the command be like?
Floor20 fastslz Posted 2008-01-30 21:21
铂金会员 Posts 2,315 Credits 5,493 From 上海
Really got to the bottom of it Some support the %* syntax and some don't, and the registry also needs corresponding associations assoc .abc=abcfile ftype abcfile=winrar.exe a "%1.rar" "%1" -p%2 Then you double-click *.abc and try it (prompt to enter password) Try running *.abc 12345 again (directly treat 12345 as the password)
Floor21 wujingyi Posted 2008-01-30 21:33
初级用户 Posts 46 Credits 47
Can you give another example of an extension with more than %1?
Floor22 fastslz Posted 2008-01-30 21:53
铂金会员 Posts 2,315 Credits 5,493 From 上海
ftype abcfile=winrar.exe a "%1.rar" "%1" -p%2 -ieml%3
Run *.abc 12345 [email protected]
Floor23 wujingyi Posted 2008-01-30 22:01
初级用户 Posts 46 Credits 47
What is the third parameter?
Floor24 wujingyi Posted 2008-01-30 22:07
初级用户 Posts 46 Credits 47
Got it, I've tried it already. It's placed in the email as an attachment.
Floor25 fastslz Posted 2008-01-30 22:08
铂金会员 Posts 2,315 Credits 5,493 From 上海
Look at the RAR help
Be flexible
ftype abcfile=winrar.exe a "%1.rar" "%1" "%2" "%3" "%4"
Run *.abc -p12345 [email protected]
If the %4 parameter is not passed, the %4 parameter is ignored
Floor26 wujingyi Posted 2008-01-30 22:08
初级用户 Posts 46 Credits 47
Can you give another example of an extension other than %1?
Floor27 wujingyi Posted 2008-01-30 22:26
初级用户 Posts 46 Credits 47
Who can give another example?
Floor28 plp626 Posted 2008-01-30 22:55
银牌会员 Posts 1,020 Credits 2,278
fastslz is really patient, we show our respect!
Floor29 lingbm Posted 2008-01-31 00:56
初级用户 Posts 27 Credits 62
It's not in vain of his hard work that I can understand it... But I'm completely at a loss...
Floor30 Jneny Posted 2008-01-31 03:18
高级用户 Posts 318 Credits 686
%0 represents itself. %1 represents the first parameter that follows. %2 represents the second one, and so on.

%* is equivalent to shift for all
Prev  1 2 3  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023