![]() |
中国DOS联盟-- 联合DOS 推动DOS 发展DOS --联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum |
| 游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟 |
|
中国DOS联盟论坛 现在时间是 2026-08-08 13:22 |
共 47,811 主题排行 / 349,895 发帖 / 今日 0 篇 / 48,253 会员排行 |
| DOS批处理 & 脚本技术(批处理室) » [已解决]怎样利用shortcut,在右键添加“创建快捷方式” |
| 可打印版本 1,210 / 13 |
| 第1楼 tireless | 发表于 2008-05-08 12:07 |
| 银牌会员 发帖 1,122 积分 2,025 | |
|
[已解决]怎样利用shortcut,在右键添加“创建快捷方式” |
|
| 第2楼 ThinKing | 发表于 2008-05-08 12:36 |
| 中级用户 发帖 207 积分 471 | |
|
问题是你要把快捷方式创建到哪里呢?
如果是创建到一个你指定的位置,那么用这两个工具配合注册表就可以了,命令自己搜索一下。 |
|
| 第3楼 tireless | 发表于 2008-05-08 13:07 |
| 银牌会员 发帖 1,122 积分 2,025 | |
|
@ ThinKing 就是跟系统的“创建快捷方式”一样-------创建到当前文件夹。
[ Last edited by tireless on 2008-5-7 at 05:08 PM ] |
|
| 第4楼 slore | 发表于 2008-05-08 13:16 |
| 铂金会员 发帖 2,478 积分 5,212 | |
|
DesktopLink.vbs?自己改改……那个是的目标是桌面……
你把桌面的那个路径部分改下…… |
|
| 第5楼 slore | 发表于 2008-05-08 13:16 |
| 铂金会员 发帖 2,478 积分 5,212 | |
|
当然多个还是很卡=。=
|
|
| 第6楼 pooronce | 发表于 2008-05-08 14:24 |
| 中级用户 发帖 250 积分 484 | |
|
既然系统有,怎么还要自己添加呢?看不懂了
|
|
| 第7楼 tireless | 发表于 2008-05-08 19:38 |
| 银牌会员 发帖 1,122 积分 2,025 | |
|
@slore 我就是考虑到多个卡的问题。
@pooronce 因为我要把系统的去掉,再自己添加 :-D 我把系统的去掉后,右击桌面的“我的电脑”、“回收站”之类的就不会有“创建快捷方式”了...然后我再添加一个“创建快捷方式”,而我自己添加的这个,不会使桌面的“我的电脑”的右键出现“创建快捷方式” |
|
| 第8楼 tireless | 发表于 2008-05-10 09:35 |
| 银牌会员 发帖 1,122 积分 2,025 | |
|
帮一下忙啊。我把shortcut的格式列出来:
Shortcut.exe /F:filename /A:C|E|Q /F:filename : Specifies the .LNK shortcut file. /A:action : Defines the action to take (C=Create, E=Edit or Q=Query). /T:target : Defines the target path and file name the shortcut points to. /P:parameters : Defines the command-line parameters to pass to the target. /W:working dir : Defines the working directory the target starts with. /R:run style : Defines the window state (1=Normal, 3=Max, 7=Min). /I:icon,index : Defines the icon and optional index (file.exe or file.exe,0). /H:hotkey : Defines the hotkey, a numeric value of the keyboard shortcut. /D:description : Defines the description (or comment) for the shortcut. Notes: - Any argument that contains spaces must be enclosed in "double quotes". - If Query is specified (/A:Q), all arguments except /F: are ignored. - To find the numeric hotkey value, use Explorer to set a hotkey and then /A:Q - To prevent an environment variable from being expanded until the shortcut is launched, use the ^ carat escape character like this: ^%WINDIR^% Examples: /f:"%ALLUSERSPROFILE%\Start Menu\Programs\My App.lnk" /a:q /f:"%USERPROFILE%\Desktop\Notepad.lnk" /a:c /t:^%WINDIR^%\Notepad.exe /h:846 /f:"%USERPROFILE%\Desktop\Notepad.lnk" /a:e /p:C:\Setup.log /r:3 |
|
| 第9楼 slore | 发表于 2008-05-10 12:22 |
| 铂金会员 发帖 2,478 积分 5,212 | |
|
/f:"%USERPROFILE%\Desktop\Notepad.lnk" /a:c /t:^%WINDIR^%\Notepad.exe
这个不是例子麽? |
|
| 第10楼 tireless | 发表于 2008-05-11 09:56 |
| 银牌会员 发帖 1,122 积分 2,025 | |
|
要添加到右键
|
|
| 第11楼 slore | 发表于 2008-05-11 10:06 |
| 铂金会员 发帖 2,478 积分 5,212 | |
|
你看我的那个脚本加到哪里了……注册表路径能看出来吧?
|
|
| 第12楼 tireless | 发表于 2008-05-11 11:33 |
| 银牌会员 发帖 1,122 积分 2,025 | |
|
@slore 我对我的“中级用户”的称号很惭愧。其实我对批处理基本上是门外汉,VBS就压根没去接触。我下载了《MS-DOS6_2批处理文件高级指南.pdg》只看了一点,然后就没去认真学了,这就是我现在的水平,根本没有入门...所以基本上要现成的代码给我才行:( 改天时间充裕的时候再去系统地学。
|
|
| 第13楼 slore | 发表于 2008-05-11 11:48 |
| 铂金会员 发帖 2,478 积分 5,212 | |
|
HKCR\AllFilesystemObjects\Shell\一个项名\
它的默认值为 右键的菜单名,不写的话,就是项名 HKCR\AllFilesystemObjects\Shell\一个项名\command 默认值是执行的语句: 你可以写c:\test\test.bat "%1" 然后test.bat自己处理吧,%1传递来的是文件的路径…… |
|
| 第14楼 mgq | 发表于 2008-05-11 16:39 |
| 中级用户 发帖 103 积分 206 来自 广东 肇庆 | |
|
注册表能隐藏 开始 按钮吗? 注册表能隐藏 开始 按钮吗?
|
|
|
[ 联系联盟系统管理团队 -
中国DOS联盟 -
标准版 ] Sponsored by ifanr Inc | © 2001–2023 |