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,746 Replies 33
Floor 16 Posted 2008-01-30 20:47 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
notepad.exe %2 这里没必要%1以上啊
第一高手 第二高手

Floor 17 Posted 2008-01-30 20:49 ·  中国 江苏 苏州 电信
初级用户
Credits 47
Posts 46
Joined 2008-01-17 19:01
18-year member
UID 108862
Gender Male
Status Offline
Floor 18 Posted 2008-01-30 20:50 ·  中国 江苏 苏州 电信
初级用户
Credits 47
Posts 46
Joined 2008-01-17 19:01
18-year member
UID 108862
Gender Male
Status Offline
Do you have QQ? Can you leave the number?
Floor 19 Posted 2008-01-30 20:54 ·  中国 江苏 苏州 电信
初级用户
Credits 47
Posts 46
Joined 2008-01-17 19:01
18-year member
UID 108862
Gender Male
Status Offline
If it is more than %1, what should the command be like?
Floor 20 Posted 2008-01-30 21:21 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
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)
第一高手 第二高手

Floor 21 Posted 2008-01-30 21:33 ·  中国 江苏 苏州 电信
初级用户
Credits 47
Posts 46
Joined 2008-01-17 19:01
18-year member
UID 108862
Gender Male
Status Offline
Can you give another example of an extension with more than %1?
Floor 22 Posted 2008-01-30 21:53 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
ftype abcfile=winrar.exe a "%1.rar" "%1" -p%2 -ieml%3
Run *.abc 12345 xxx@xxx.com
第一高手 第二高手

Floor 23 Posted 2008-01-30 22:01 ·  中国 江苏 苏州 电信
初级用户
Credits 47
Posts 46
Joined 2008-01-17 19:01
18-year member
UID 108862
Gender Male
Status Offline
What is the third parameter?
Floor 24 Posted 2008-01-30 22:07 ·  中国 江苏 苏州 电信
初级用户
Credits 47
Posts 46
Joined 2008-01-17 19:01
18-year member
UID 108862
Gender Male
Status Offline
Got it, I've tried it already. It's placed in the email as an attachment.
Floor 25 Posted 2008-01-30 22:08 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
Look at the RAR help
Be flexible
ftype abcfile=winrar.exe a "%1.rar" "%1" "%2" "%3" "%4"
Run *.abc -p12345 -iemlxxx@xxx.com
If the %4 parameter is not passed, the %4 parameter is ignored
第一高手 第二高手

Floor 26 Posted 2008-01-30 22:08 ·  中国 江苏 苏州 电信
初级用户
Credits 47
Posts 46
Joined 2008-01-17 19:01
18-year member
UID 108862
Gender Male
Status Offline
Can you give another example of an extension other than %1?
Floor 27 Posted 2008-01-30 22:26 ·  中国 江苏 苏州 电信
初级用户
Credits 47
Posts 46
Joined 2008-01-17 19:01
18-year member
UID 108862
Gender Male
Status Offline
Who can give another example?
Floor 28 Posted 2008-01-30 22:55 ·  中国 陕西 西安 电信
银牌会员
★★★★
钻石会员
Credits 2,278
Posts 1,020
Joined 2007-11-19 13:34
18-year member
UID 103127
Gender Male
Status Offline
fastslz is really patient, we show our respect!
Floor 29 Posted 2008-01-31 00:56 ·  中国 福建 福州 电信
初级用户
Credits 62
Posts 27
Joined 2008-01-23 11:54
18-year member
UID 109327
Gender Male
Status Offline
It's not in vain of his hard work that I can understand it... But I'm completely at a loss...
Floor 30 Posted 2008-01-31 03:18 ·  中国 上海 浦东新区 电信
高级用户
★★★
中國DOS聯盟常任參議员
Credits 686
Posts 318
Joined 2005-11-04 13:00
20-year member
UID 77577
Gender Male
Status Offline
%0 represents itself. %1 represents the first parameter that follows. %2 represents the second one, and so on.

%* is equivalent to shift for all
. 繽紛色彩閃出的美麗是因為它沒有分開每種色彩...>/

我的百度空间: BEYOND超越 为什么用DOS
Forum Jump: