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
Forum Jump:
— Select —
站务公告 & 版主讨论
意见反馈 & 网友交流
DOS学习入门 & 精彩文章 (教学室)
DOS疑难解答 & 问题讨论 (解答室)
DOS启动盘 & LOGO技术 (启动盘室)
DOS批处理 & 脚本技术(批处理室)
DOS媒体世界 & 网络技术 (多媒体室)
DOS汉化世界 & 中文系统 (中文化室)
DOS开发编程 & 发展交流 (开发室)
DOS软件下载 & 游戏分享 (下载室)
GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区
其它操作系统综合讨论区
WinPE、PowerShell及其它命令行系统专区
贴图灌水、文学娱乐专区
网络日志(Blog)
论坛回收站
├ 链接失效,待修正