如何通过批处理创建桌面快捷方式
打个比方说:D盘下有软件,想用批处理为这里的文件创建快捷方式到桌面~命令是什么?高手请把批处理代码直接回复~谢谢帮助菜鸟~HOHO~~...
打个比方说:D盘下有软件,想用批处理为这里的文件创建快捷方式到桌面~命令是什么?
高手请把批处理代码直接回复~
谢谢帮助菜鸟~
HOHO~~ 展开
高手请把批处理代码直接回复~
谢谢帮助菜鸟~
HOHO~~ 展开
展开全部
Sub bat
echo off & cls
echo create_shortcut
start wscript -e:vbs "%~f0"
Exit Sub
End Sub
Set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set oShellLink = WshShell.CreateShortcut(strDesktop & "\QQ.lnk")
oShellLink.TargetPath = "e:\bak\QQ\QQ.exe"
oShellLink.WindowStyle = 3
oShellLink.Hotkey = "Ctrl+Alt+e"
oShellLink.IconLocation = "e:\bak\QQ\QQ.exe, 0"
oShellLink.Description = "快捷方式"
oShellLink.WorkingDirectory = "e:\bak\QQ"
oShellLink.Save
echo off & cls
echo create_shortcut
start wscript -e:vbs "%~f0"
Exit Sub
End Sub
Set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set oShellLink = WshShell.CreateShortcut(strDesktop & "\QQ.lnk")
oShellLink.TargetPath = "e:\bak\QQ\QQ.exe"
oShellLink.WindowStyle = 3
oShellLink.Hotkey = "Ctrl+Alt+e"
oShellLink.IconLocation = "e:\bak\QQ\QQ.exe, 0"
oShellLink.Description = "快捷方式"
oShellLink.WorkingDirectory = "e:\bak\QQ"
oShellLink.Save
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询