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 12:27
中国DOS联盟论坛 » 其它操作系统综合讨论区 » What is the function of "%*"? View 3,749 Replies 33
Original Poster Posted 2008-01-27 19:02 ·  中国 江苏 苏州 电信
初级用户
Credits 47
Posts 46
Joined 2008-01-17 19:01
18-year member
UID 108862
Gender Male
Status Offline
What is the function of "%*" in "[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\open\command] @="\"%1\" %*""?
Floor 2 Posted 2008-01-27 19:24 ·  中国 陕西 西安 电信
银牌会员
★★★★
钻石会员
Credits 2,278
Posts 1,020
Joined 2007-11-19 13:34
18-year member
UID 103127
Gender Male
Status Offline
%1 %2 %3 ... %9
Personal opinion
Floor 3 Posted 2008-01-29 21:06 ·  中国 江苏 苏州 电信
初级用户
Credits 47
Posts 46
Joined 2008-01-17 19:01
18-year member
UID 108862
Gender Male
Status Offline
Who knows, please help!!
Floor 4 Posted 2008-01-29 23:03 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
@echo off
call :xxx A B C D E F G H I J K

:xxx
echo %*
goto:eof
第一高手 第二高手

Floor 5 Posted 2008-01-30 00:11 ·  中国 福建 福州 电信
初级用户
Credits 62
Posts 27
Joined 2008-01-23 11:54
18-year member
UID 109327
Gender Male
Status Offline
Wildcards, right? Hehe. Don't use this method to explain it upstairs~
Floor 6 Posted 2008-01-30 19:07 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
Originally posted by lingbm at 2008-1-30 00:11:
Wildcards~~Is that right~~Hehe The above shouldn't use this method to explain ah`~


Can't understand without examples, just like this there are also private messages asking

@echo off
call :xxx A B C D E F G H I J K
pause
exit

:xxx
echo %1 %2 %3 ....
goto:eof


@echo off
call :xxx A B C D E F G H I J K
pause
exit

:xxx
echo %*
goto:eof
第一高手 第二高手

Floor 7 Posted 2008-01-30 19:22 ·  中国 江苏 苏州 电信
初级用户
Credits 47
Posts 46
Joined 2008-01-17 19:01
18-year member
UID 108862
Gender Male
Status Offline
It's an abbreviated form, but I know this one, just don't understand what this means.
:xxx
echo %*
goto:eof
Floor 8 Posted 2008-01-30 19:33 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
Display %? All available variables
第一高手 第二高手

Floor 9 Posted 2008-01-30 19:33 ·  中国 江苏 苏州 电信
初级用户
Credits 47
Posts 46
Joined 2008-01-17 19:01
18-year member
UID 108862
Gender Male
Status Offline
Please provide the Chinese content that needs to be translated so that I can translate it for you.
Floor 10 Posted 2008-01-30 19:35 ·  中国 江苏 苏州 电信
初级用户
Credits 47
Posts 46
Joined 2008-01-17 19:01
18-year member
UID 108862
Gender Male
Status Offline
What is the use of displaying all available variables?
Floor 11 Posted 2008-01-30 19:39 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\open\command]
@="\"%1\" %*"
Run the EXE itself. If there are following parameters, run according to the parameters. %* can include multiple parameters
第一高手 第二高手

Floor 12 Posted 2008-01-30 19:41 ·  中国 江苏 苏州 电信
初级用户
Credits 47
Posts 46
Joined 2008-01-17 19:01
18-year member
UID 108862
Gender Male
Status Offline
What is the use of including multiple parameters?
Floor 13 Posted 2008-01-30 19:52 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
Why do I have to say it clearly? If RAR can only pass 1 parameter, then can it still be useful?
第一高手 第二高手

Floor 14 Posted 2008-01-30 20:10 ·  中国 江苏 苏州 电信
初级用户
Credits 47
Posts 46
Joined 2008-01-17 19:01
18-year member
UID 108862
Gender Male
Status Offline
assoc .abc=abcfile
ftype abcfile=notepad %1和ftype abcfile=notepad %2以及
ftype abcfile=notepad %3 What's the difference?
I tried it. The first combination above can open the file to be clicked, but the latter two can't!!! Why? I don't understand, please tell me!!!
Floor 15 Posted 2008-01-30 20:12 ·  中国 江苏 苏州 电信
初级用户
Credits 47
Posts 46
Joined 2008-01-17 19:01
18-year member
UID 108862
Gender Male
Status Offline
I think the latter two should also be useful!!!
Forum Jump: