[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[文件操作] [有奖翻译]T005:命令行工具Shortcut.exe1.11(创建快捷方式)

【活动说明】http://bbs.bathome.net/thread-2991-1-1.html

【官方下载】http://www.optimumx.com/download/#Shortcut

【本地下载】http://bcn.bathome.net/s/tool/index.html?key=Shortcut

【最新版本】1.11(2005-07-04)

【任务内容】
  1. Shortcut [Version 1.11]
  2. Creates, modifies or queries Windows shell links (shortcuts)
  3. The syntax of this command is:
  4. shortcut /F:filename /A:C|E|Q [/T:target] [/P:parameters] [/W:workingdir]
  5. [/R:runstyle] [/I:icon,index] [/H:hotkey] [/D:description]
  6. /F:filename : Specifies the .LNK shortcut file.
  7. /A:action : Defines the action to take (C=Create, E=Edit or Q=Query).
  8. /T:target : Defines the target path and file name the shortcut points to.
  9. /P:parameters : Defines the command-line parameters to pass to the target.
  10. /W:working dir : Defines the working directory the target starts with.
  11. /R:run style : Defines the window state (1=Normal, 3=Max, 7=Min).
  12. /I:icon,index : Defines the icon and optional index (file.exe or file.exe,0).
  13. /H:hotkey : Defines the hotkey, a numeric value of the keyboard shortcut.
  14. /D:description : Defines the description (or comment) for the shortcut.
  15. Notes:
  16. - Any argument that contains spaces must be enclosed in "double quotes".
  17. - If Query is specified (/A:Q), all arguments except /F: are ignored.
  18. - To find the numeric hotkey value, use Explorer to set a hotkey and then /A:Q
  19. - To prevent an environment variable from being expanded until the shortcut
  20.    is launched, use the ^ carat escape character like this: ^%WINDIR^%
  21. Examples:
  22.    /f:"%ALLUSERSPROFILE%\Start Menu\Programs\My App.lnk" /a:q
  23.    /f:"%USERPROFILE%\Desktop\Notepad.lnk" /a:c /t:^%WINDIR^%\Notepad.exe /h:846
  24.    /f:"%USERPROFILE%\Desktop\Notepad.lnk" /a:e /p:C:\Setup.log /r:3
  25. An argument of /? or -? displays this syntax and returns 1.
  26. A successful completion will return 0.
  27. Copyright 2000-2005 Marty List, www.OptimumX.com
复制代码
我帮忙写的代码不需要付钱。如果一定要给,请在微信群或QQ群发给大家吧。
【微信公众号、微信群、QQ群】http://bbs.bathome.net/thread-3473-1-1.html
【支持批处理之家,加入VIP会员!】http://bbs.bathome.net/thread-67716-1-1.html

回复 4楼 的帖子

我们追求的是多样化的解决方案,不能只局限于单一。
我帮忙写的代码不需要付钱。如果一定要给,请在微信群或QQ群发给大家吧。
【微信公众号、微信群、QQ群】http://bbs.bathome.net/thread-3473-1-1.html
【支持批处理之家,加入VIP会员!】http://bbs.bathome.net/thread-67716-1-1.html

TOP

返回列表