标题: [已解决]怎样利用shortcut,在右键添加“创建快捷方式”
[打印本页]
作者: tireless
时间: 2008-5-8 12:07
标题: [已解决]怎样利用shortcut,在右键添加“创建快捷方式”
在右键添加“创建快捷方式”,效果应同系统右键的“创建快捷方式”一样。
利用
shortcut 或
nircmd
[
Last edited by tireless on 2008-5-10 at 05:17 PM ]
作者: ThinKing
时间: 2008-5-8 12:36
问题是你要把快捷方式创建到哪里呢?
如果是创建到一个你指定的位置,那么用这两个工具配合注册表就可以了,命令自己搜索一下。
作者: tireless
时间: 2008-5-8 13:07
标题: @ ThinKing
就是跟系统的“创建快捷方式”一样-------创建到当前文件夹。
[
Last edited by tireless on 2008-5-7 at 05:08 PM ]
作者: slore
时间: 2008-5-8 13:16
DesktopLink.vbs?自己改改……那个是的目标是桌面……
你把桌面的那个路径部分改下……
作者: slore
时间: 2008-5-8 13:16
当然多个还是很卡=。=
作者: pooronce
时间: 2008-5-8 14:24
既然系统有,怎么还要自己添加呢?看不懂了
作者: tireless
时间: 2008-5-8 19:38
@slore 我就是考虑到多个卡的问题。
@pooronce 因为我要把系统的去掉,再自己添加 :-D 我把系统的去掉后,右击桌面的“我的电脑”、“回收站”之类的就不会有“创建快捷方式”了...然后我再添加一个“创建快捷方式”,而我自己添加的这个,不会使桌面的“我的电脑”的右键出现“创建快捷方式”
作者: tireless
时间: 2008-5-10 09:35
帮一下忙啊。我把shortcut的格式列出来:
Shortcut.exe /F:filename /A:C|E|Q [/T:target] [/P:parameters] [/W:workingdir]
[/R:runstyle] [/I:icon,index] [/H:hotkey] [/D:description]
/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
作者: slore
时间: 2008-5-10 12:22
/f:"%USERPROFILE%\Desktop\Notepad.lnk" /a:c /t:^%WINDIR^%\Notepad.exe
这个不是例子麽?
作者: tireless
时间: 2008-5-11 09:56
要添加到右键
作者: slore
时间: 2008-5-11 10:06
你看我的那个脚本加到哪里了……注册表路径能看出来吧?
作者: tireless
时间: 2008-5-11 11:33
@slore 我对我的“中级用户”的称号很惭愧。其实我对批处理基本上是门外汉,VBS就压根没去接触。我下载了《MS-DOS6_2批处理文件高级指南.pdg》只看了一点,然后就没去认真学了,这就是我现在的水平,根本没有入门...所以基本上要现成的代码给我才行:( 改天时间充裕的时候再去系统地学。
作者: slore
时间: 2008-5-11 11:48
HKCR\AllFilesystemObjects\Shell\一个项名\
它的默认值为 右键的菜单名,不写的话,就是项名
HKCR\AllFilesystemObjects\Shell\一个项名\command
默认值是执行的语句:
你可以写c:\test\test.bat "%1"
然后test.bat自己处理吧,%1传递来的是文件的路径……
作者: mgq
时间: 2008-5-11 16:39
标题: 注册表能隐藏 开始 按钮吗?
注册表能隐藏 开始 按钮吗?