Board logo

标题: [已解决]如何实现快捷方式右键菜单加入查看目标 [打印本页]

作者: 9zhmke    时间: 2009-3-26 10:58     标题: [已解决]如何实现快捷方式右键菜单加入查看目标

有个很经典的注册表加入了批处理功能,用于对快捷方式点右键打开所在文件夹并选中此文件。但批处理的黑框不太好看,如果能弄成vbs语句就完美了。

有没有办法弄成vbs的语句?

Windows Registry Editor Version 5.00

;加入查找位置
[HKEY_CLASSES_ROOT\lnkfile\shell\打开文件所在文件夹\command]
@="cmd /cfor /f \"delims=\" %%i in ('find \":\" \"%1\"^|findstr \"^[A-Z]:[\\\\]\"') do start explorer /select,/n,\"%~fi\"&&exit"

[ 本帖最后由 9zhmke 于 2009-3-26 12:21 编辑 ]
作者: Batcher    时间: 2009-3-26 11:06

批处理隐藏运行的10种思路
http://bbs.bathome.net/thread-3271-1-1.html

[ 本帖最后由 Batcher 于 2009-3-26 11:08 编辑 ]
作者: zqz0012005    时间: 2009-3-26 11:47

  1. Windows Registry Editor Version 5.00
  2. [HKEY_CLASSES_ROOT\lnkfile\shell\Target]
  3. @="查看目标(&F)"
  4. [HKEY_CLASSES_ROOT\lnkfile\shell\Target\command]
  5. @="mshta vbscript:CreateObject(\"WScript.Shell\").Run(\"explorer /e,/select,\"&CreateObject(\"WScript.Shell\").CreateShortcut(\"%1\").TargetPath)(close)"
复制代码

作者: 9zhmke    时间: 2009-3-26 12:20

谢谢版主回复,你们太伟大了。这个功能真的很实用。




欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2